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

+10 -1
View File
@@ -114,6 +114,15 @@ func (p *Server) processPacket(packet *Packet) {
return
}
if packet.my.Type == (int32)(MyMsg_KICK) {
localConn := p.getServerConnById(packet.my.Id)
if localConn != nil {
p.close(localConn)
loggo.Info("remote kick local %s", packet.my.Id)
}
return
}
loggo.Debug("processPacket %s %s %d", packet.my.Id, packet.src.String(), len(packet.my.Data))
now := time.Now()
@@ -491,7 +500,7 @@ func (p *Server) deleteServerConn(uuid string) {
}
func (p *Server) remoteError(uuid string, packet *Packet) {
sendICMP(packet.echoId, packet.echoSeq, *p.conn, packet.src, "", uuid, (uint32)(MyMsg_KICK), packet.my.Data,
sendICMP(packet.echoId, packet.echoSeq, *p.conn, packet.src, "", uuid, (uint32)(MyMsg_KICK), []byte{},
(int)(packet.my.Rproto), -1, p.key,
0, 0, 0, 0, 0, 0,
0)