- rDNS: don't try to resolve loopback IP addresses

This commit is contained in:
Simon Zolin 2019-06-25 16:14:52 +03:00
parent f1e6a30931
commit 6a1edc45be

View File

@ -165,8 +165,11 @@ func onDNSRequest(d *proxy.DNSContext) {
return
}
ipAddr := net.ParseIP(ip)
if !ipAddr.IsLoopback() {
beginAsyncRDNS(ip)
}
}
func generateServerConfig() dnsforward.ServerConfig {
filters := []dnsfilter.Filter{}