diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-04 17:52:52 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-04 17:52:52 +0200 |
commit | 2ead2538b108c8bf6b6c43648310ad7cf7073adc (patch) | |
tree | b7de17a85c9d58938b3c928bea11775b6325027d | |
parent | Merge pull request #1138 from mc-server/enderchest (diff) | |
download | cuberite-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 |
-rw-r--r-- | src/HTTPServer/HTTPServer.cpp | 2 |
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) |