Browse Source

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

Shelikhoo 4 years ago
parent
commit
1ed32e35a6
1 changed files with 5 additions and 0 deletions
  1. 5 0
      features/dns/fakedns.go

+ 5 - 0
features/dns/fakedns.go

@@ -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
+}