Only one instance of server can be started
This disallows the UDP multicasting that the original code enabled. xoft deterrent, in PR #1151 you implied that this was unwanted behaviour (but comments gone now as I force pushed - check emails?). Revert at will if unsatisfactory :P
This commit is contained in:
parent
e11f41d048
commit
6484e9814a
@ -221,14 +221,12 @@ bool cServer::InitServer(cIniFile & a_SettingsIni)
|
|||||||
|
|
||||||
bool HasAnyPorts = false;
|
bool HasAnyPorts = false;
|
||||||
AString Ports = a_SettingsIni.GetValueSet("Server", "Port", "25565");
|
AString Ports = a_SettingsIni.GetValueSet("Server", "Port", "25565");
|
||||||
m_ListenThreadIPv4.SetReuseAddr(true);
|
|
||||||
if (m_ListenThreadIPv4.Initialize(Ports))
|
if (m_ListenThreadIPv4.Initialize(Ports))
|
||||||
{
|
{
|
||||||
HasAnyPorts = true;
|
HasAnyPorts = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ports = a_SettingsIni.GetValueSet("Server", "PortsIPv6", "25565");
|
Ports = a_SettingsIni.GetValueSet("Server", "PortsIPv6", "25565");
|
||||||
m_ListenThreadIPv6.SetReuseAddr(true);
|
|
||||||
if (m_ListenThreadIPv6.Initialize(Ports))
|
if (m_ListenThreadIPv6.Initialize(Ports))
|
||||||
{
|
{
|
||||||
HasAnyPorts = true;
|
HasAnyPorts = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user