summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-20 14:49:15 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-20 14:49:15 +0200
commit2823ee9026e32eac068389bc3dcd439d905c87b3 (patch)
tree6addd1e00ed122d0fc4d01452ee71351f6d576aa
parentLine tracer invalid chunk fix (diff)
downloadcuberite-2823ee9026e32eac068389bc3dcd439d905c87b3.tar
cuberite-2823ee9026e32eac068389bc3dcd439d905c87b3.tar.gz
cuberite-2823ee9026e32eac068389bc3dcd439d905c87b3.tar.bz2
cuberite-2823ee9026e32eac068389bc3dcd439d905c87b3.tar.lz
cuberite-2823ee9026e32eac068389bc3dcd439d905c87b3.tar.xz
cuberite-2823ee9026e32eac068389bc3dcd439d905c87b3.tar.zst
cuberite-2823ee9026e32eac068389bc3dcd439d905c87b3.zip
-rw-r--r--src/Server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Server.cpp b/src/Server.cpp
index 367d507bf..180ec2ca6 100644
--- a/src/Server.cpp
+++ b/src/Server.cpp
@@ -222,12 +222,14 @@ bool cServer::InitServer(cIniFile & a_SettingsIni)
bool HasAnyPorts = false;
AString Ports = a_SettingsIni.GetValueSet("Server", "Port", "25565");
+ m_ListenThreadIPv4.SetReuseAddr(true);
if (m_ListenThreadIPv4.Initialize(Ports))
{
HasAnyPorts = true;
}
Ports = a_SettingsIni.GetValueSet("Server", "PortsIPv6", "25565");
+ m_ListenThreadIPv6.SetReuseAddr(true);
if (m_ListenThreadIPv6.Initialize(Ports))
{
HasAnyPorts = true;