add
This commit is contained in:
1 parent
a8ea8a358a
commit
50fb2fdb4e
2 files changed
+11
-2
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user