mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-06 04:08:40 +00:00
Refine DNS strategies
This commit is contained in:
parent
f4a048aa0c
commit
726a722019
21 changed files with 255 additions and 208 deletions
|
@ -38,6 +38,11 @@ func (*Client) LookupIP(host string) ([]net.IP, error) {
|
|||
return parsedIPs, nil
|
||||
}
|
||||
|
||||
// LookupOptions implements Client.
|
||||
func (c *Client) LookupOptions(host string, _ dns.IPOption) ([]net.IP, error) {
|
||||
return c.LookupIP(host)
|
||||
}
|
||||
|
||||
// LookupIPv4 implements IPv4Lookup.
|
||||
func (c *Client) LookupIPv4(host string) ([]net.IP, error) {
|
||||
ips, err := c.LookupIP(host)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue