Revert "Only one instance of server can be started"
This reverts commit 6484e9814a
.
* Fixes #1200
This commit is contained in:
parent
ba24f50e5e
commit
2823ee9026
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user