mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 21:57:44 +03:00
Update deps
This commit is contained in:
parent
7ca40df7c1
commit
9b33aba757
16 changed files with 301 additions and 55 deletions
12
vendor/github.com/miekg/dns/server.go
generated
vendored
12
vendor/github.com/miekg/dns/server.go
generated
vendored
|
@ -560,18 +560,24 @@ func (srv *Server) serveDNS(m []byte, w *response) {
|
|||
req := new(Msg)
|
||||
req.setHdr(dh)
|
||||
|
||||
switch srv.MsgAcceptFunc(dh) {
|
||||
switch action := srv.MsgAcceptFunc(dh); action {
|
||||
case MsgAccept:
|
||||
if req.unpack(dh, m, off) == nil {
|
||||
break
|
||||
}
|
||||
|
||||
fallthrough
|
||||
case MsgReject:
|
||||
case MsgReject, MsgRejectNotImplemented:
|
||||
opcode := req.Opcode
|
||||
req.SetRcodeFormatError(req)
|
||||
req.Zero = false
|
||||
if action == MsgRejectNotImplemented {
|
||||
req.Opcode = opcode
|
||||
req.Rcode = RcodeNotImplemented
|
||||
}
|
||||
|
||||
// Are we allowed to delete any OPT records here?
|
||||
req.Ns, req.Answer, req.Extra = nil, nil, nil
|
||||
req.Zero = false
|
||||
|
||||
w.WriteMsg(req)
|
||||
fallthrough
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue