mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-11 22:58:43 +00:00
Add support for internal DNS system
This commit is contained in:
parent
4999fd5b7b
commit
5f504888b6
7 changed files with 206 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue