-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ignore Z flag in queries, clear Z flag in automatic replies #976
Conversation
|
Codecov Report
@@ Coverage Diff @@
## master #976 +/- ##
==========================================
+ Coverage 55.48% 55.52% +0.03%
==========================================
Files 42 42
Lines 9923 9922 -1
==========================================
+ Hits 5506 5509 +3
+ Misses 3389 3387 -2
+ Partials 1028 1026 -2
Continue to review full report at Codecov.
|
@@ -571,6 +571,7 @@ func (srv *Server) serveDNS(m []byte, w *response) { | |||
req.SetRcodeFormatError(req) | |||
// Are we allowed to delete any OPT records here? | |||
req.Ns, req.Answer, req.Extra = nil, nil, nil | |||
req.Zero = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while this is not currently explicitly tested, it seems like a good default when rejecting the message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, one comment
The excessive testing code removed, leaving with the only two checks for the aspects this diff changes. @miekg |
Context in issue #975.
cc @chantra