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/http/server.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/http/server.py')
-rw-r--r-- | synapse/http/server.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/synapse/http/server.py b/synapse/http/server.py index d77cb77799..f1376ee243 100644 --- a/synapse/http/server.py +++ b/synapse/http/server.py @@ -86,6 +86,7 @@ class JsonResource(HttpServer, resource.Resource): self.clock = hs.get_clock() self.path_regexs = {} self.version_string = hs.version_string + self.hs = hs def register_path(self, method, path_pattern, callback): self.path_regexs.setdefault(method, []).append( @@ -99,7 +100,11 @@ class JsonResource(HttpServer, resource.Resource): port (int): The port to listen on. """ - reactor.listenTCP(port, server.Site(self)) + reactor.listenTCP( + port, + server.Site(self), + interface=self.hs.config.bind_host + ) # Gets called by twisted def render(self, request): |