mirror of
https://github.com/CPunch/gopenfusion.git
synced 2025-11-21 22:50:33 +00:00
packet: refactoring; use go's binary package for encoding *most* things
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user