diff options
author | Roald de Vries <rdevries@thoughtworks.com> | 2016-09-21 13:37:01 +0200 |
---|---|---|
committer | Roald de Vries <rdevries@thoughtworks.com> | 2016-09-21 14:43:32 +0200 |
commit | 1340200d161fc0d8ba0219f3694231aad0caaf62 (patch) | |
tree | 9ed66505371d9baecffd7812a542fb34ce522646 /service | |
parent | 9d7eaf2b7c527cf05b8b0f7acbd46dbc5483f09f (diff) |
open telnet/ssh port only on localhost
Diffstat (limited to 'service')
-rw-r--r-- | service/pixelated/application.py | 4 |
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), |