From a8ea8a358a5c0bd116a83194321673b698baab13 Mon Sep 17 00:00:00 2001 From: esrrhs Date: Wed, 19 Dec 2018 15:02:37 +0800 Subject: [PATCH] update --- server.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.go b/server.go index d145170..a7c84ef 100644 --- a/server.go +++ b/server.go @@ -60,7 +60,9 @@ func (p *Server) Run() { func (p *Server) processPacket(packet *Packet) { if packet.msgType == PING { - fmt.Printf("pong from %s\n", packet.src.String()) + t := time.Time{} + t.UnmarshalBinary(packet.data) + fmt.Printf("pong from %s %s\n", packet.src.String(), t.String()) sendICMP(*p.conn, packet.src, "", "", (uint32)(DATA), packet.data, packet.rproto, 0) return }