From b988fcb56a2548e114f6bbcb3bb43bdfb5f61fdc Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Tue, 4 Aug 2015 16:02:20 -0400 Subject: [bug] bind TCPServer to localhost currently, mx services are being bound to all the interfaces. - Resolves: #7348 --- pkg/mx.tac | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'pkg') 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 -- cgit v1.2.3