diff options
Diffstat (limited to 'service')
-rw-r--r-- | service/pixelated/bitmask_libraries/smtp.py | 5 | ||||
-rw-r--r-- | service/pixelated/user_agent.py | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/service/pixelated/bitmask_libraries/smtp.py b/service/pixelated/bitmask_libraries/smtp.py index 76a232a6..b298e1ef 100644 --- a/service/pixelated/bitmask_libraries/smtp.py +++ b/service/pixelated/bitmask_libraries/smtp.py @@ -22,7 +22,7 @@ import random class LeapSmtp(object): - SMTP_PORT = 2014 + TWISTED_PORT = 4650 def __init__(self, provider, keymanager=None, leap_srp_session=None): self._provider = provider @@ -31,8 +31,7 @@ class LeapSmtp(object): self._hostname, self._port = self._discover_smtp_server() self._smtp_port = None self._smtp_service = None - self._twisted_port = 10000 + int(random.random() * 5000) - print "## SMTP port: " + str(self._twisted_port) + print('Running on port %d' % TWISTED_PORT) def smtp_info(self): return ('localhost', self._twisted_port) diff --git a/service/pixelated/user_agent.py b/service/pixelated/user_agent.py index ce096a6f..cee360cb 100644 --- a/service/pixelated/user_agent.py +++ b/service/pixelated/user_agent.py @@ -145,7 +145,8 @@ def setup(): mail_service = MailService(leap_session) global mail_service mail_service.start() - app.run(host=app.config['HOST'], debug=debug_enabled, port=app.config['PORT']) + app.run(host=app.config['HOST'], debug=debug_enabled, + port=app.config['PORT'], use_reloader=False) if __name__ == '__main__': |