From 150c7ed74bceb64029dc446c81b87d95f4a9e749 Mon Sep 17 00:00:00 2001 From: esrrhs Date: Sun, 23 Dec 2018 06:12:16 +0800 Subject: [PATCH] test --- server.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server.go b/server.go index f414a43..f790253 100644 --- a/server.go +++ b/server.go @@ -72,10 +72,10 @@ func (p *Server) processPacket(packet *Packet) { p.echoSeq = packet.echoSeq if packet.msgType == PING { - t := time.Time{} - t.UnmarshalBinary(packet.data) - fmt.Printf("ping from %s %s %d %d %d\n", packet.src.String(), t.String(), packet.rproto, packet.echoId, packet.echoSeq) - sendICMP(packet.echoId, packet.echoSeq, *p.conn, packet.src, "", "", (uint32)(PING), packet.data, packet.rproto, -1) + //t := time.Time{} + //t.UnmarshalBinary(packet.data) + //fmt.Printf("ping from %s %s %d %d %d\n", packet.src.String(), t.String(), packet.rproto, packet.echoId, packet.echoSeq) + //sendICMP(packet.echoId, packet.echoSeq, *p.conn, packet.src, "", "", (uint32)(PING), packet.data, packet.rproto, -1) return }