Add option to not bind to HTTPS port. This is useful if running behind an ssl load balancer

This commit is contained in:
Erik Johnston 2014-11-03 15:06:40 +00:00
parent ad6eacb3e9
commit af7ae048f8
3 changed files with 8 additions and 2 deletions

View file

@ -233,7 +233,10 @@ def setup():
f.namespace['hs'] = hs
reactor.listenTCP(config.manhole, f, interface='127.0.0.1')
hs.start_listening(config.bind_port, config.unsecure_port)
bind_port = config.bind_port
if config.no_tls:
bind_port = None
hs.start_listening(bind_port, config.unsecure_port)
if config.daemonize:
print config.pid_file