From 93e6e8a8f01480f315fb7afdaa3ab72065ccab41 Mon Sep 17 00:00:00 2001 From: mkwcat Date: Mon, 29 Jan 2024 00:53:33 -0500 Subject: [PATCH] QR2: Send keepalive packets to client --- qr2/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qr2/main.go b/qr2/main.go index 2385c90..f0bfb59 100644 --- a/qr2/main.go +++ b/qr2/main.go @@ -132,6 +132,8 @@ func handleConnection(conn net.PacketConn, addr net.Addr, buffer []byte) { case KeepAliveRequest: logging.Info(moduleName, "Command:", aurora.Yellow("KEEPALIVE")) + conn.WriteTo(createResponseHeader(KeepAliveRequest, 0), addr) + mutex.Lock() session.LastKeepAlive = time.Now().Unix() mutex.Unlock()