summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)