mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-04-03 07:53:28 +03:00
- rDNS: don't try to resolve loopback IP addresses
This commit is contained in:
parent
f1e6a30931
commit
6a1edc45be
1 changed files with 4 additions and 1 deletions
|
@ -165,7 +165,10 @@ func onDNSRequest(d *proxy.DNSContext) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
beginAsyncRDNS(ip)
|
ipAddr := net.ParseIP(ip)
|
||||||
|
if !ipAddr.IsLoopback() {
|
||||||
|
beginAsyncRDNS(ip)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func generateServerConfig() dnsforward.ServerConfig {
|
func generateServerConfig() dnsforward.ServerConfig {
|
||||||
|
|
Loading…
Add table
Reference in a new issue