mirror of
https://github.com/miekg/dns.git
synced 2026-05-05 22:56:10 +02:00
Make defaultMsgAcceptFunc a func not a var (#887)
This commit is contained in:
parent
b955100a79
commit
ace4e60848
@ -24,7 +24,7 @@ const (
|
||||
MsgIgnore // Ignore the error and send nothing back.
|
||||
)
|
||||
|
||||
var defaultMsgAcceptFunc = func(dh Header) MsgAcceptAction {
|
||||
func defaultMsgAcceptFunc(dh Header) MsgAcceptAction {
|
||||
if isResponse := dh.Bits&_QR != 0; isResponse {
|
||||
return MsgIgnore
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user