Fake DNS additional API for fake dns + others and request aware response

This commit is contained in:
Shelikhoo committed 2021-04-10 00:01:14 +01:00
1 parent 3b4920a1e6
commit 1ed32e35a6
1 file changed
+5
+5
View File
@@ -10,3 +10,8 @@ type FakeDNSEngine interface {
GetFakeIPForDomain(domain string) []net.Address
GetDomainFromFakeDNS(ip net.Address) string
}
type FakeDNSEngineRev0 interface {
IsIPInIPPool(ip net.Address) bool
GetFakeIPForDomain3(domain string, IPv4, IPv6 bool) []net.Address
}