1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-12 02:40:42 +00:00

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

This commit is contained in:
Shelikhoo 2021-04-10 00:01:14 +01:00
parent 3b4920a1e6
commit 1ed32e35a6
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

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
}