summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRoald de Vries <rdevries@thoughtworks.com>2016-09-21 13:37:01 +0200
committerRoald de Vries <rdevries@thoughtworks.com>2016-09-21 14:43:32 +0200
commit1340200d161fc0d8ba0219f3694231aad0caaf62 (patch)
tree9ed66505371d9baecffd7812a542fb34ce522646 /service
parent9d7eaf2b7c527cf05b8b0f7acbd46dbc5483f09f (diff)
open telnet/ssh port only on localhost
Diffstat (limited to 'service')
-rw-r--r--service/pixelated/application.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/application.py b/service/pixelated/application.py
index 2bb5cb9b..30e1bd3a 100644
--- a/service/pixelated/application.py
+++ b/service/pixelated/application.py
@@ -227,8 +227,8 @@ def start_site(config, resource):
telnetFactory = telnetService.factory
sshFactory = sshService.factory
- reactor.listenTCP(8008, telnetFactory)
- reactor.listenTCP(8009, sshFactory)
+ reactor.listenTCP(8008, telnetFactory, interface='localhost')
+ reactor.listenTCP(8009, sshFactory, interface='localhost')
if config.sslkey and config.sslcert:
reactor.listenSSL(config.port, PixelatedSite(resource), _ssl_options(config.sslkey, config.sslcert),