Minor fix.

This commit is contained in:
genxium
2023-01-29 22:38:12 +08:00
parent c65c122f45
commit 677e76179c
7 changed files with 57 additions and 55 deletions

View File

@@ -1732,6 +1732,7 @@ func (pR *Room) startBattleUdpTunnel() {
continue
}
playerId := pReq.PlayerId
Logger.Info(fmt.Sprintf("`BattleUdpTunnel` for roomId=%d received decoded WsReq:", pR.Id), zap.Any("pReq", pReq))
if player, exists1 := pR.Players[playerId]; exists1 {
authKey := pReq.AuthKey
if authKey != player.BattleUdpTunnelAuthKey {