summaryrefslogtreecommitdiffstats
path: root/src/HTTPServer/HTTPServer.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-04 17:52:52 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-04 17:52:52 +0200
commit2ead2538b108c8bf6b6c43648310ad7cf7073adc (patch)
treeb7de17a85c9d58938b3c928bea11775b6325027d /src/HTTPServer/HTTPServer.cpp
parentMerge pull request #1138 from mc-server/enderchest (diff)
downloadcuberite-2ead2538b108c8bf6b6c43648310ad7cf7073adc.tar
cuberite-2ead2538b108c8bf6b6c43648310ad7cf7073adc.tar.gz
cuberite-2ead2538b108c8bf6b6c43648310ad7cf7073adc.tar.bz2
cuberite-2ead2538b108c8bf6b6c43648310ad7cf7073adc.tar.lz
cuberite-2ead2538b108c8bf6b6c43648310ad7cf7073adc.tar.xz
cuberite-2ead2538b108c8bf6b6c43648310ad7cf7073adc.tar.zst
cuberite-2ead2538b108c8bf6b6c43648310ad7cf7073adc.zip
Diffstat (limited to 'src/HTTPServer/HTTPServer.cpp')
-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)