+ DNS: new blocking mode: "refused"

This commit is contained in:
Simon Zolin
2020-08-19 14:13:16 +03:00
parent f0ebec545e
commit b6193c32ce
4 changed files with 9 additions and 3 deletions

View File

@@ -74,7 +74,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
}