added rcode to acl rejection
This commit is contained in:
parent
a3ab188219
commit
62b22b9ad7
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user