xlxd 2.4.1

Corrected bug : last packets of a stream are sent back to sender
This commit is contained in:
LX3JL 2021-01-05 10:36:36 +01:00
parent af900106c5
commit cb989fd8de
3 changed files with 14 additions and 7 deletions

4
src/cg3protocol.cpp Normal file → Executable file
View file

@ -69,6 +69,7 @@ bool CG3Protocol::Init(void)
std::cout << "Error opening socket on port UDP" << G3_CONFIG_PORT << " on ip " << g_Reflector.GetListenIp() << std::endl;
}
#ifndef DEBUG_NO_G3_ICMP_SOCKET
ok &= m_IcmpRawSocket.Open(IPPROTO_ICMP);
if ( !ok )
{
@ -82,7 +83,8 @@ bool CG3Protocol::Init(void)
m_pPresenceThread = new std::thread(ConfigThread, this);
m_pPresenceThread = new std::thread(IcmpThread, this);
}
#endif
// update time
m_LastKeepaliveTime.Now();