summaryrefslogtreecommitdiffstats
path: root/src/HTTPServer
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-07-04 18:09:29 +0200
committerMattes D <github@xoft.cz>2014-07-04 18:09:29 +0200
commit7cc7429fa03cef2599b9c18bd5697ab35f8d29fb (patch)
tree5d17b7c3723b9fa661f5044877df77459fff7e7f /src/HTTPServer
parentcPluginManager: Reformatted the switch statement. (diff)
parentMCS WebAdmin sockets rebinds instantly (diff)
downloadcuberite-7cc7429fa03cef2599b9c18bd5697ab35f8d29fb.tar
cuberite-7cc7429fa03cef2599b9c18bd5697ab35f8d29fb.tar.gz
cuberite-7cc7429fa03cef2599b9c18bd5697ab35f8d29fb.tar.bz2
cuberite-7cc7429fa03cef2599b9c18bd5697ab35f8d29fb.tar.lz
cuberite-7cc7429fa03cef2599b9c18bd5697ab35f8d29fb.tar.xz
cuberite-7cc7429fa03cef2599b9c18bd5697ab35f8d29fb.tar.zst
cuberite-7cc7429fa03cef2599b9c18bd5697ab35f8d29fb.zip
Diffstat (limited to '')
-rw-r--r--src/HTTPServer/HTTPServer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/HTTPServer/HTTPServer.cpp b/src/HTTPServer/HTTPServer.cpp
index d288c83c9..036b2e042 100644
--- a/src/HTTPServer/HTTPServer.cpp
+++ b/src/HTTPServer/HTTPServer.cpp
@@ -179,6 +179,8 @@ bool cHTTPServer::Initialize(const AString & a_PortsIPv4, const AString & a_Port
// Open up requested ports:
bool HasAnyPort;
+ m_ListenThreadIPv4.SetReuseAddr(true);
+ m_ListenThreadIPv6.SetReuseAddr(true);
HasAnyPort = m_ListenThreadIPv4.Initialize(a_PortsIPv4);
HasAnyPort = m_ListenThreadIPv6.Initialize(a_PortsIPv6) || HasAnyPort;
if (!HasAnyPort)