packet: refactoring; use go's binary package for encoding *most* things

This commit is contained in:
2023-03-10 17:10:57 -06:00
parent 52f0c4b1c7
commit 5cc3f275c1
2 changed files with 40 additions and 99 deletions

View File

@@ -35,6 +35,7 @@ func (server *LoginServer) AcceptLogin(peer *Peer, SzID string, IClientVerC int3
UiSvrTime: uint64(time.Now().Unix()),
}
// swap keys
peer.Send(resp, protocol.P_LS2CL_REP_LOGIN_SUCC)
peer.E_key = protocol.CreateNewKey(
resp.UiSvrTime,