This commit is contained in:
esrrhs committed 2019-11-01 18:44:15 +08:00
1 parent 8d1d2bd6a2
commit 30b1cd117b
2 files changed
+18 -1

No files matched your search

+8
View File
@@ -557,6 +557,7 @@ func (p *Client) processPacket(packet *Packet) {
clientConn := p.getClientConnById(packet.my.Id)
if clientConn == nil {
loggo.Debug("processPacket no conn %s ", packet.my.Id)
p.remoteError(packet.my.Id)
return
}
@@ -711,3 +712,10 @@ func (p *Client) deleteClientConn(uuid string, addr string) {
p.localIdToConnMap.Delete(uuid)
p.localAddrToConnMap.Delete(addr)
}
func (p *Client) remoteError(uuid string) {
sendICMP(p.id, p.sequence, *p.conn, p.ipaddrServer, "", uuid, (uint32)(MyMsg_KICK), []byte{},
SEND_PROTO, RECV_PROTO, p.key,
0, 0, 0, 0, 0, 0,
0)
}