mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-09-25 08:45:32 -05:00
QR2: Send keepalive packets to client
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user