summaryrefslogtreecommitdiffstats
path: root/pyload/web/pyload_app.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/web/pyload_app.py')
-rw-r--r--pyload/web/pyload_app.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pyload/web/pyload_app.py b/pyload/web/pyload_app.py
index 1ec7cf4c9..1c89e2ada 100644
--- a/pyload/web/pyload_app.py
+++ b/pyload/web/pyload_app.py
@@ -70,7 +70,11 @@ def index():
# set variable depending on setup mode
setup = 'false' if SETUP is None else 'true'
ws = PYLOAD.getWSAddress() if PYLOAD else False
- web = PYLOAD.getConfigValue('webinterface', 'port') if PYLOAD else False
+ web = None
+ if PYLOAD:
+ web = PYLOAD.getConfigValue('webinterface', 'port')
+ elif SETUP:
+ web = SETUP.config['webinterface']['port']
# Render variables into the html page
if resp.status_code == 200: