diff options
author | Kali Kaneko <kali@leap.se> | 2013-09-03 20:35:00 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-09-03 20:35:00 +0200 |
commit | 6aa4e588c84579b785e49d903d0239e9ae13aba6 (patch) | |
tree | 71feb74d8e0aba16d852f980e8fb6b432a90ff4d /src/leap/mail/smtp | |
parent | daf11353454378378d54ba3244a7c3b6f30e586b (diff) |
Make mail services bind to 127.0.0.1 instead of 0.0.0.0
Closes: #3627
Diffstat (limited to 'src/leap/mail/smtp')
-rw-r--r-- | src/leap/mail/smtp/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/mail/smtp/__init__.py b/src/leap/mail/smtp/__init__.py index cc9cc26..2a4abc5 100644 --- a/src/leap/mail/smtp/__init__.py +++ b/src/leap/mail/smtp/__init__.py @@ -77,7 +77,8 @@ def setup_smtp_relay(port, keymanager, smtp_host, smtp_port, # configure the use of this service with twistd factory = SMTPFactory(keymanager, config) try: - reactor.listenTCP(port, factory) + reactor.listenTCP(port, factory, + interface="localhost") signal(proto.SMTP_SERVICE_STARTED, str(smtp_port)) return factory except CannotListenError: |