mirror of https://github.com/v2ray/v2ray-core
fix LocalNameServer
parent
7d2c34f674
commit
6a7887b655
|
@ -216,8 +216,7 @@ func (*LocalNameServer) QueryA(domain string) <-chan *ARecord {
|
|||
go func() {
|
||||
defer close(response)
|
||||
|
||||
resolver := net.SystemIPResolver()
|
||||
ips, err := resolver.LookupIP(domain)
|
||||
ips, err := net.LookupIP(domain)
|
||||
if err != nil {
|
||||
newError("failed to lookup IPs for domain ", domain).Base(err).AtWarning().WriteToLog()
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue