1
0

MCS WebAdmin sockets rebinds instantly

* Fixes #272
* Fixes #1150
This commit is contained in:
Tiger Wang 2014-07-04 16:52:52 +01:00
parent 39fff19955
commit 2ead2538b1

View File

@ -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)