mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -05:00
Fix: fakedns return ErrEmptyResponse without result (#926)
This commit is contained in:
parent
8ba4ac15ac
commit
bad6cdfb88
@ -44,5 +44,8 @@ func (f *FakeDNSServer) QueryIP(ctx context.Context, domain string, _ net.IP, op
|
|||||||
|
|
||||||
newError(f.Name(), " got answer: ", domain, " -> ", ips).AtInfo().WriteToLog()
|
newError(f.Name(), " got answer: ", domain, " -> ", ips).AtInfo().WriteToLog()
|
||||||
|
|
||||||
return netIP, nil
|
if len(netIP) > 0 {
|
||||||
|
return netIP, nil
|
||||||
|
}
|
||||||
|
return nil, dns.ErrEmptyResponse
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user