github.com/v2fly/v2ray-core/v4@v4.45.2/features/dns/fakedns.go (about) 1 package dns 2 3 import ( 4 "github.com/v2fly/v2ray-core/v4/common/net" 5 "github.com/v2fly/v2ray-core/v4/features" 6 ) 7 8 type FakeDNSEngine interface { 9 features.Feature 10 GetFakeIPForDomain(domain string) []net.Address 11 GetDomainFromFakeDNS(ip net.Address) string 12 } 13 14 type FakeDNSEngineRev0 interface { 15 FakeDNSEngine 16 IsIPInIPPool(ip net.Address) bool 17 GetFakeIPForDomain3(domain string, IPv4, IPv6 bool) []net.Address 18 }