diff options
author | madmaxoft <github@xoft.cz> | 2013-10-05 23:08:16 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-05 23:08:16 +0200 |
commit | b5c90d7b20fede4e643e96417684c7c009d063cb (patch) | |
tree | 16729dacd792717ae4818dbe019b0fd02c58048a /source/HTTPServer/HTTPServer.cpp | |
parent | Fixed Base64Decode() returning wrong value. (diff) | |
download | cuberite-b5c90d7b20fede4e643e96417684c7c009d063cb.tar cuberite-b5c90d7b20fede4e643e96417684c7c009d063cb.tar.gz cuberite-b5c90d7b20fede4e643e96417684c7c009d063cb.tar.bz2 cuberite-b5c90d7b20fede4e643e96417684c7c009d063cb.tar.lz cuberite-b5c90d7b20fede4e643e96417684c7c009d063cb.tar.xz cuberite-b5c90d7b20fede4e643e96417684c7c009d063cb.tar.zst cuberite-b5c90d7b20fede4e643e96417684c7c009d063cb.zip |
Diffstat (limited to '')
-rw-r--r-- | source/HTTPServer/HTTPServer.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/source/HTTPServer/HTTPServer.cpp b/source/HTTPServer/HTTPServer.cpp index 43bb751c4..7e216c629 100644 --- a/source/HTTPServer/HTTPServer.cpp +++ b/source/HTTPServer/HTTPServer.cpp @@ -127,25 +127,16 @@ cHTTPServer::cHTTPServer(void) : -bool cHTTPServer::Initialize(cIniFile & a_IniFile) +bool cHTTPServer::Initialize(const AString & a_PortsIPv4, const AString & a_PortsIPv6) { - if (!a_IniFile.GetValueSetB("WebAdmin", "Enabled", false)) - { - // The WebAdmin is disabled - return true; - } bool HasAnyPort; - HasAnyPort = m_ListenThreadIPv4.Initialize(a_IniFile.GetValueSet("WebAdmin", "Port", "8081")); - HasAnyPort = m_ListenThreadIPv6.Initialize(a_IniFile.GetValueSet("WebAdmin", "PortsIPv6", "8082, 3300")) || HasAnyPort; + HasAnyPort = m_ListenThreadIPv4.Initialize(a_PortsIPv4); + HasAnyPort = m_ListenThreadIPv6.Initialize(a_PortsIPv6) || HasAnyPort; if (!HasAnyPort) { - LOG("WebAdmin is disabled"); return false; } - // DEBUG: - return Start(g_DebugCallbacks); - return true; } |