diff options
author | Kali Kaneko <kali@futeisha.org> | 2015-08-04 16:02:20 -0400 |
---|---|---|
committer | Kali Kaneko <kali@futeisha.org> | 2015-08-04 17:25:50 -0400 |
commit | b988fcb56a2548e114f6bbcb3bb43bdfb5f61fdc (patch) | |
tree | 35a23ec619ca49ff63179cf330e46142e5426a9e /pkg/mx.tac | |
parent | 6187e0792de6925d22b3956eb3ba8f46646960d3 (diff) |
[bug] bind TCPServer to localhost
currently, mx services are being bound to all the interfaces.
- Resolves: #7348
Diffstat (limited to 'pkg/mx.tac')
-rwxr-xr-x | pkg/mx.tac | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |