mirror of https://github.com/XTLS/Xray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
472 B
23 lines
472 B
package dns |
|
|
|
import ( |
|
"github.com/xtls/xray-core/common/net" |
|
"github.com/xtls/xray-core/features" |
|
) |
|
|
|
type FakeDNSEngine interface { |
|
features.Feature |
|
GetFakeIPForDomain(domain string) []net.Address |
|
GetDomainFromFakeDNS(ip net.Address) string |
|
} |
|
|
|
var ( |
|
FakeIPv4Pool = "198.18.0.0/15" |
|
FakeIPv6Pool = "fc00::/18" |
|
) |
|
|
|
type FakeDNSEngineRev0 interface { |
|
FakeDNSEngine |
|
IsIPInIPPool(ip net.Address) bool |
|
GetFakeIPForDomain3(domain string, IPv4, IPv6 bool) []net.Address |
|
}
|
|
|