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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user