Listening to 0.0.0.0 instead of 127.0.0.1 when attempted address is not local

This commit is contained in:
JohnDoee
2015-11-22 16:20:58 +01:00
parent bcc2067e55
commit c85c5763d6

View File

@@ -553,7 +553,7 @@ class Core(CorePluginBase):
try:
self.listening = reactor.listenTCP(self.config['port'], self.site, interface=self.config['ip'])
except:
self.listening = reactor.listenTCP(self.config['port'], self.site, interface='127.0.0.1')
self.listening = reactor.listenTCP(self.config['port'], self.site, interface='0.0.0.0')
@defer.inlineCallbacks
def disable(self):