mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-17 02:48:28 -07:00
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:
commit
e50b4fd185
@ -165,8 +165,11 @@ func onDNSRequest(d *proxy.DNSContext) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ipAddr := net.ParseIP(ip)
|
||||||
|
if !ipAddr.IsLoopback() {
|
||||||
beginAsyncRDNS(ip)
|
beginAsyncRDNS(ip)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func generateServerConfig() dnsforward.ServerConfig {
|
func generateServerConfig() dnsforward.ServerConfig {
|
||||||
filters := []dnsfilter.Filter{}
|
filters := []dnsfilter.Filter{}
|
||||||
|
Loading…
Reference in New Issue
Block a user