diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2014-11-06 16:58:15 -0200 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2014-11-06 17:00:26 -0200 |
commit | c321859bbe82a692b16b58cdb45c916f2bfd29aa (patch) | |
tree | e30814e8702a765022542f3bd60827e03ab0993b /service/pixelated/config/app_factory.py | |
parent | da869f1efe3f623a52dd5a432f984f7780ea6149 (diff) |
Making it possible to change host to bind app with --host
Diffstat (limited to 'service/pixelated/config/app_factory.py')
-rw-r--r-- | service/pixelated/config/app_factory.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/config/app_factory.py b/service/pixelated/config/app_factory.py index 8b256550..3dc1c83a 100644 --- a/service/pixelated/config/app_factory.py +++ b/service/pixelated/config/app_factory.py @@ -131,8 +131,8 @@ def init_app(app): sync_info_controller, attachments_controller) -def create_app(app): - reactor.listenTCP(3333, Site(app.resource()), interface='localhost') +def create_app(app, bind_address): + reactor.listenTCP(3333, Site(app.resource()), interface=bind_address) reactor.callWhenRunning(lambda: init_app(app)) reactor.run() |