From ba08b8b127106fd8b3e320dfa16055f161cdd1b2 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Mon, 6 Dec 2021 07:52:20 -0700 Subject: [PATCH] announce M17 PONG packets --- reflector/M17Protocol.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/reflector/M17Protocol.cpp b/reflector/M17Protocol.cpp index ede7f74..eecdbc9 100644 --- a/reflector/M17Protocol.cpp +++ b/reflector/M17Protocol.cpp @@ -128,7 +128,7 @@ void CM17Protocol::Task(void) } else if ( IsValidKeepAlivePacket(Buffer, Callsign) ) { - //std::cout << "M17 keepalive packet from " << Callsign << " at " << Ip << std::endl; + std::cout << "M17 keepalive packet from " << Callsign << " at " << Ip << std::endl; // find all clients with that callsign & ip and keep them alive CClients *clients = g_Reflector.GetClients(); @@ -295,9 +295,7 @@ void CM17Protocol::HandleKeepalives(void) else if ( !client->IsAlive() ) { // no, disconnect - CBuffer disconnect; - disconnect.Set("DISC"); - Send(disconnect, client->GetIp()); + Send("DISC", client->GetIp()); // remove it std::cout << "M17 client " << client->GetCallsign() << " keepalive timeout" << std::endl;