summaryrefslogtreecommitdiffstats
path: root/source/Root.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-24 20:52:37 +0200
committermadmaxoft <github@xoft.cz>2013-09-24 20:52:37 +0200
commit11e0c73ffd23a506c68ae351641a7ca74085ca81 (patch)
tree35c68724d42014f4b5f55beacc0aaf030dda1a34 /source/Root.cpp
parentFixed a few compiler warnings (diff)
downloadcuberite-11e0c73ffd23a506c68ae351641a7ca74085ca81.tar
cuberite-11e0c73ffd23a506c68ae351641a7ca74085ca81.tar.gz
cuberite-11e0c73ffd23a506c68ae351641a7ca74085ca81.tar.bz2
cuberite-11e0c73ffd23a506c68ae351641a7ca74085ca81.tar.lz
cuberite-11e0c73ffd23a506c68ae351641a7ca74085ca81.tar.xz
cuberite-11e0c73ffd23a506c68ae351641a7ca74085ca81.tar.zst
cuberite-11e0c73ffd23a506c68ae351641a7ca74085ca81.zip
Diffstat (limited to 'source/Root.cpp')
-rw-r--r--source/Root.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/Root.cpp b/source/Root.cpp
index 3933535f1..823bd8e13 100644
--- a/source/Root.cpp
+++ b/source/Root.cpp
@@ -135,11 +135,9 @@ void cRoot::Start(void)
{
LOGWARNING("webadmin.ini inaccessible, wabadmin is disabled");
}
-
- if (WebIniFile.GetValueB("WebAdmin", "Enabled", false))
+ else
{
- LOG("Creating WebAdmin...");
- m_WebAdmin = new cWebAdmin(8080);
+ m_WebServer.Initialize(WebIniFile);
}
LOG("Loading settings...");