mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-25 10:52:13 -04:00
Drop redundant uses of authoritative=True
The ans3 custom server instance is created with default_aa=True. Do not pass the authoritative=True keyword argument to the DnsResponseSend constructor in CookieHandler.get_responses() as it is redundant.
This commit is contained in:
parent
802c03313f
commit
c61539279d
1 changed files with 2 additions and 2 deletions
|
|
@ -80,13 +80,13 @@ class CookieHandler(DomainHandler):
|
|||
# If missing cookie entirely, just return SERVFAIL
|
||||
if cookie is None:
|
||||
qctx.response.set_rcode(dns.rcode.SERVFAIL)
|
||||
yield DnsResponseSend(qctx.response, authoritative=True)
|
||||
yield DnsResponseSend(qctx.response)
|
||||
|
||||
# If there is a client cookie, mock BADCOOKIE to trigger
|
||||
# the resend loop logic.
|
||||
qctx.response.use_edns(options=[cookie])
|
||||
qctx.response.set_rcode(dns.rcode.BADCOOKIE)
|
||||
yield DnsResponseSend(qctx.response, authoritative=True)
|
||||
yield DnsResponseSend(qctx.response)
|
||||
|
||||
|
||||
def resend_server() -> AsyncDnsServer:
|
||||
|
|
|
|||
Loading…
Reference in a new issue