diff options
author | Matthew Hodgson <matthew@matrix.org> | 2015-03-14 00:12:20 +0000 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2015-03-14 00:12:20 +0000 |
commit | c8032aec1794cb3ad79b4b61892917768b372bd6 (patch) | |
tree | 841c2db5c1755268b0a334a7ce0a181c0defa731 /synapse/app/homeserver.py | |
parent | uncommited WIP from MWC (diff) | |
download | synapse-c8032aec1794cb3ad79b4b61892917768b372bd6.tar.xz |
actually uphold the bind_host parameter. in theory should make ipv6 binds work like bind_host: 'fe80::1%lo0'
Diffstat (limited to 'synapse/app/homeserver.py')
-rwxr-xr-x | synapse/app/homeserver.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index aa7c722efc..15c454af76 100755 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -225,13 +225,18 @@ class SynapseHomeServer(HomeServer): if not config.no_tls and config.bind_port is not None: reactor.listenSSL( - config.bind_port, Site(self.root_resource), self.tls_context_factory + config.bind_port, + Site(self.root_resource), + self.tls_context_factory, + interface=config.bind_host ) logger.info("Synapse now listening on port %d", config.bind_port) if config.unsecure_port is not None: reactor.listenTCP( - config.unsecure_port, Site(self.root_resource) + config.unsecure_port, + Site(self.root_resource), + interface=config.bind_host ) logger.info("Synapse now listening on port %d", config.unsecure_port) |