0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-18 14:19:48 +03:00

Add support for internal DNS system

This commit is contained in:
风扇滑翔翼
2025-03-09 18:55:37 +00:00
committed by GitHub
parent 4999fd5b7b
commit 5f504888b6
7 changed files with 206 additions and 0 deletions

View File

@ -24,6 +24,13 @@ type Client interface {
LookupIP(domain string, option IPOption) ([]net.IP, error)
}
type EnhancedClient interface {
Client
// LookupHTTPS returns HTTPS records for the given domain.
LookupHTTPS(domain string) (map[string]string, error)
}
type HostsLookup interface {
LookupHosts(domain string) *net.Address
}