added rcode to acl rejection

This commit is contained in:
2020-12-23 20:05:35 +01:00
parent a3ab188219
commit 62b22b9ad7

View File

@@ -171,6 +171,7 @@ func createServer(zones []zone, config config, aclList map[string]*net.IPNet) *d
if !passed {
m := new(dns.Msg)
m.SetReply(r)
m.SetRcode(r, dns.RcodeRefused)
w.WriteMsg(m)
return
}