Chore: revert "Feature: add tls SNI sniffing (#68)"

This reverts commit 24ce6622a2.
This commit is contained in:
yaling888
2022-03-31 21:20:46 +08:00
parent 24ce6622a2
commit e877b68179
5 changed files with 0 additions and 337 deletions

View File

@ -14,7 +14,6 @@ type Enhancer interface {
IsExistFakeIP(net.IP) bool
FindHostByIP(net.IP) (string, bool)
FlushFakeIP() error
InsertHostByIP(net.IP, string)
}
func FakeIPEnabled() bool {
@ -57,12 +56,6 @@ func IsExistFakeIP(ip net.IP) bool {
return false
}
func InsertHostByIP(ip net.IP, host string) {
if mapper := DefaultHostMapper; mapper != nil {
mapper.InsertHostByIP(ip, host)
}
}
func FindHostByIP(ip net.IP) (string, bool) {
if mapper := DefaultHostMapper; mapper != nil {
return mapper.FindHostByIP(ip)