Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam Osuchowski
Kea
Commits
8acbf043
Commit
8acbf043
authored
Jul 31, 2013
by
Mukund Sivaraman
Browse files
Merge branch 'trac2925'
parents
c989ea12
51e0b742
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/xfrout/xfrout.py.in
View file @
8acbf043
...
...
@@ -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):
...
...
src/bin/xfrout/xfrout.spec.pre.in
View file @
8acbf043
...
...
@@ -43,7 +43,7 @@
"item_name": "port",
"item_type": "integer",
"item_optional": false,
"item_default":
0
"item_default":
53
}
]
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment