summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2013-09-03 15:38:27 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2013-09-03 15:38:27 -0300
commit5437b530ce0572c9aab9111f392a5137721afd43 (patch)
tree71feb74d8e0aba16d852f980e8fb6b432a90ff4d /src
parentdaf11353454378378d54ba3244a7c3b6f30e586b (diff)
parent6aa4e588c84579b785e49d903d0239e9ae13aba6 (diff)
Merge remote-tracking branch 'kali/bug/listen-only-localhost' into develop
Diffstat (limited to 'src')
-rw-r--r--src/leap/mail/imap/service/imap.py3
-rw-r--r--src/leap/mail/smtp/__init__.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/leap/mail/imap/service/imap.py b/src/leap/mail/imap/service/imap.py
index 9e9a524..b840e86 100644
--- a/src/leap/mail/imap/service/imap.py
+++ b/src/leap/mail/imap/service/imap.py
@@ -157,7 +157,8 @@ def run_service(*args, **kwargs):
from twisted.internet import reactor
try:
- reactor.listenTCP(port, factory)
+ reactor.listenTCP(port, factory,
+ interface="localhost")
fetcher = LeapIncomingMail(
keymanager,
soledad,
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: