1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-10 01:40:44 +00:00

Fix: fakedns return ErrEmptyResponse without result (#926)

This commit is contained in:
sixg0000d 2021-04-22 08:12:05 +08:00 committed by GitHub
parent 8ba4ac15ac
commit bad6cdfb88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()
return netIP, nil
if len(netIP) > 0 {
return netIP, nil
}
return nil, dns.ErrEmptyResponse
}