summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@futeisha.org>2015-08-04 16:02:20 -0400
committerKali Kaneko <kali@futeisha.org>2015-08-04 17:25:50 -0400
commitb988fcb56a2548e114f6bbcb3bb43bdfb5f61fdc (patch)
tree35a23ec619ca49ff63179cf330e46142e5426a9e
parent6187e0792de6925d22b3956eb3ba8f46646960d3 (diff)
[bug] bind TCPServer to localhost
currently, mx services are being bound to all the interfaces. - Resolves: #7348
-rwxr-xr-xpkg/mx.tac9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkg/mx.tac b/pkg/mx.tac
index 7da59cf..e85dea5 100755
--- a/pkg/mx.tac
+++ b/pkg/mx.tac
@@ -68,12 +68,15 @@ cdb = couchdbhelper.ConnectedCouchDB(server,
application = service.Application("LEAP MX")
# Alias map
-alias_map = internet.TCPServer(alias_port, AliasResolverFactory(couchdb=cdb))
+alias_map = internet.TCPServer(
+ alias_port, AliasResolverFactory(couchdb=cdb),
+ interface="localhost")
alias_map.setServiceParent(application)
# Check recipient access
-check_recipient = internet.TCPServer(check_recipient_port,
- CheckRecipientAccessFactory(couchdb=cdb))
+check_recipient = internet.TCPServer(
+ check_recipient_port, CheckRecipientAccessFactory(couchdb=cdb),
+ interface="localhost")
check_recipient.setServiceParent(application)
# Mail receiver