Merge branch 'master' into 1680-upstreams-file

This commit is contained in:
Andrey Meshkov
2020-09-09 14:51:27 +03:00
9 changed files with 34 additions and 15 deletions

View File

@@ -76,7 +76,7 @@ func (s *Server) handleGetConfig(w http.ResponseWriter, r *http.Request) {
func checkBlockingMode(req dnsConfigJSON) bool {
bm := req.BlockingMode
if !(bm == "default" || bm == "nxdomain" || bm == "null_ip" || bm == "custom_ip") {
if !(bm == "default" || bm == "refused" || bm == "nxdomain" || bm == "null_ip" || bm == "custom_ip") {
return false
}