+(dnsforward): added bogus-nxdomain setting

Closes: https://github.com/AdguardTeam/AdGuardHome/issues/1545
This commit is contained in:
Andrey Meshkov
2020-05-08 18:39:37 +03:00
parent 0311e53ebb
commit 8909599739
10 changed files with 1088 additions and 933 deletions

View File

@@ -51,7 +51,7 @@ func (s *Server) handleGetConfig(w http.ResponseWriter, r *http.Request) {
resp.EDNSCSEnabled = s.conf.EnableEDNSClientSubnet
resp.DNSSECEnabled = s.conf.EnableDNSSEC
resp.DisableIPv6 = s.conf.AAAADisabled
resp.FastestAddr = s.conf.FastestAddrAlgo
resp.FastestAddr = s.conf.FastestAddr
resp.ParallelRequests = s.conf.AllServers
s.RUnlock()
@@ -170,7 +170,7 @@ func (s *Server) handleSetConfig(w http.ResponseWriter, r *http.Request) {
}
if js.Exists("fastest_addr") {
s.conf.FastestAddrAlgo = req.FastestAddr
s.conf.FastestAddr = req.FastestAddr
}
if js.Exists("parallel_requests") {