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

Close #838

* commit '6a1edc45be51a16bc1e8b63bb1661a6e4196fe5a':
  - rDNS: don't try to resolve loopback IP addresses
This commit is contained in:
Simon Zolin 2019-06-27 10:55:25 +03:00
commit e50b4fd185
1 changed files with 4 additions and 1 deletions

View File

@ -165,7 +165,10 @@ func onDNSRequest(d *proxy.DNSContext) {
return
}
ipAddr := net.ParseIP(ip)
if !ipAddr.IsLoopback() {
beginAsyncRDNS(ip)
}
}
func generateServerConfig() dnsforward.ServerConfig {