summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-11-12 15:56:57 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-11-12 15:56:57 +0100
commitc33b30db766be731f19d1ab46d9a1aae4e86e02e (patch)
tree35309059207224f7d1fc18aa3807ef9ebe2d22d4
parentadded plugin for filefactory.com (diff)
downloadpyload-c33b30db766be731f19d1ab46d9a1aae4e86e02e.tar.xz
webserver listens now on all ip addresses (can be configured in the config file)
-rw-r--r--config1
-rw-r--r--module/web/WebServer.py4
2 files changed, 3 insertions, 2 deletions
diff --git a/config b/config
index 43579fe8e..fd543b602 100644
--- a/config
+++ b/config
@@ -4,6 +4,7 @@ password = pwhere
[webinterface]
activated = True
+listenaddr = 0.0.0.0
port = 8080
username = User
password = webpw
diff --git a/module/web/WebServer.py b/module/web/WebServer.py
index 94d00e168..5497439da 100644
--- a/module/web/WebServer.py
+++ b/module/web/WebServer.py
@@ -282,5 +282,5 @@ class WebServer(threading.Thread):
bottle.TEMPLATE_PATH.append('./module/web/templates/%s.tpl')
def run(self):
- self.core.logger.info("Starting Webinterface on port %s" % self.core.config['webinterface']['port'])
- run(host='localhost', port=int(self.core.config['webinterface']['port']), quiet=True)
+ self.core.logger.info("Starting Webinterface on %s port %s" % (self.core.config['webinterface']['listenaddr'],self.core.config['webinterface']['port']))
+ run(host=self.core.config['webinterface']['listenaddr'], port=int(self.core.config['webinterface']['port']), quiet=True)