This commit is contained in:
esrrhs committed 2018-12-19 15:05:22 +08:00
1 parent a8ea8a358a
commit 50fb2fdb4e
2 files changed
+11 -2

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ func (p *Server) processPacket(packet *Packet) {
if packet.msgType == PING {
t := time.Time{}
t.UnmarshalBinary(packet.data)
fmt.Printf("pong from %s %s\n", packet.src.String(), t.String())
fmt.Printf("ping from %s %s %d\n", packet.src.String(), t.String(), packet.rproto)
sendICMP(*p.conn, packet.src, "", "", (uint32)(DATA), packet.data, packet.rproto, 0)
return
}