BIND 10 trac2925, updated. 51e0b7424c7b3992e1bec9d524c7554ab33f45ab [2925] Check for address and port keys in config before using them
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Jul 30 04:19:16 UTC 2013
The branch, trac2925 has been updated
via 51e0b7424c7b3992e1bec9d524c7554ab33f45ab (commit)
from 99e8782450496aba1595fbee4058d0f1e5a4477d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 51e0b7424c7b3992e1bec9d524c7554ab33f45ab
Author: Mukund Sivaraman <muks at isc.org>
Date: Tue Jul 30 09:35:06 2013 +0530
[2925] Check for address and port keys in config before using them
-----------------------------------------------------------------------
Summary of changes:
src/bin/xfrout/xfrout.py.in | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
-----------------------------------------------------------------------
diff --git a/src/bin/xfrout/xfrout.py.in b/src/bin/xfrout/xfrout.py.in
index e26bc9a..8d66d93 100755
--- a/src/bin/xfrout/xfrout.py.in
+++ b/src/bin/xfrout/xfrout.py.in
@@ -1018,6 +1018,8 @@ class UnixSockServer(socketserver_mixin.NoPollMixIn,
class XfroutServer:
def __init__(self):
+ self._default_notify_address = ''
+ self._default_notify_port = 53
self._unix_socket_server = None
self._listen_sock_file = UNIX_SOCKET_FILE
self._shutdown_event = threading.Event()
@@ -1046,7 +1048,13 @@ class XfroutServer:
self._notifier = notify_out.NotifyOut(datasrc)
if 'also_notify' in self._config_data:
for slave in self._config_data['also_notify']:
- self._notifier.add_slave(slave['address'], slave['port'])
+ address = self._default_notify_address
+ if 'address' in slave:
+ address = slave['address']
+ port = self._default_notify_port
+ if 'port' in slave:
+ port = slave['port']
+ self._notifier.add_slave(address, port)
self._notifier.dispatcher()
def send_notify(self, zone_name, zone_class):
More information about the bind10-changes
mailing list