mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 10:43:17 -04:00
chore: Upgrade to golangci-lint v2 (#7236)
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
This commit is contained in:
@@ -19,8 +19,8 @@ type rcodeResponseRule struct {
|
||||
}
|
||||
|
||||
func (r *rcodeResponseRule) RewriteResponse(res *dns.Msg, rr dns.RR) {
|
||||
if r.old == res.MsgHdr.Rcode {
|
||||
res.MsgHdr.Rcode = r.new
|
||||
if r.old == res.Rcode {
|
||||
res.Rcode = r.new
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user