diff options
Diffstat (limited to 'service/pixelated/config/app_factory.py')
-rw-r--r-- | service/pixelated/config/app_factory.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/service/pixelated/config/app_factory.py b/service/pixelated/config/app_factory.py index 3dc1c83a..6a9046ee 100644 --- a/service/pixelated/config/app_factory.py +++ b/service/pixelated/config/app_factory.py @@ -131,8 +131,9 @@ def init_app(app): sync_info_controller, attachments_controller) -def create_app(app, bind_address): - reactor.listenTCP(3333, Site(app.resource()), interface=bind_address) +def create_app(app, bind_address, bind_port): + print type(reactor.listenTCP) + reactor.listenTCP(bind_port, Site(app.resource()), interface=bind_address) reactor.callWhenRunning(lambda: init_app(app)) reactor.run() |