mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-07-09 22:19:58 -05:00
QR2: Send keepalive packets to client
This commit is contained in:
parent
39feaa2597
commit
93e6e8a8f0
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user