modified: src/netbox_plugin_bind_provisioner/management/commands/bind-transfer-endpoint.py
Catches a further exception if the wrong algorithm is specified for the tsig key used.
This commit is contained in:
1 parent
8fba131230
commit
6bbb2e9905
1 file changed
+3
-2
@@ -457,8 +457,9 @@ class TCPRequestHandler(DNSBaseRequestHandler):
|
||||
)
|
||||
self.denyRequestBadTSIG(wire, dns.rcode.BADSIG)
|
||||
return
|
||||
# If TSIG Key used is not in our list, refuse query:
|
||||
except dns.message.UnknownTSIGKey as e:
|
||||
# If TSIG Key used is unknown to us or secret does not match
|
||||
# the selected key, refuse query:
|
||||
except (dns.message.UnknownTSIGKey, dns.tsig.BadAlgorithm) as e:
|
||||
logger.warning(f"Request denied from {peer} with bad TSIG key: {e}")
|
||||
self.denyRequestBadTSIG(wire, dns.rcode.BADKEY)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user