mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 05:30:00 -04:00
Drop unused AsyncDnsServer constructor argument
The constructor for the AsyncDnsServer class takes a 'load_zones' argument that is not used anywhere and is not expected to be useful in the future: zone files are not required for an AsyncDnsServer instance to start and, if necessary, zone-based answers can be suppressed or modified by installing a custom response handler.
This commit is contained in:
parent
1b8ceec580
commit
5110278008
1 changed files with 2 additions and 3 deletions
|
|
@ -533,14 +533,13 @@ class AsyncDnsServer(AsyncServer):
|
|||
response from scratch, without using zone data at all.
|
||||
"""
|
||||
|
||||
def __init__(self, load_zones: bool = True):
|
||||
def __init__(self):
|
||||
super().__init__(self._handle_udp, self._handle_tcp, "ans.pid")
|
||||
|
||||
self._zone_tree: _ZoneTree = _ZoneTree()
|
||||
self._response_handlers: List[ResponseHandler] = []
|
||||
|
||||
if load_zones:
|
||||
self._load_zones()
|
||||
self._load_zones()
|
||||
|
||||
def install_response_handler(
|
||||
self, handler: ResponseHandler, prepend: bool = False
|
||||
|
|
|
|||
Loading…
Reference in a new issue