From c4b969d0a137a030e3512102525c955e1312a39f Mon Sep 17 00:00:00 2001 From: esrrhs Date: Wed, 19 Dec 2018 15:13:47 +0800 Subject: [PATCH] fix --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index e8a4fde..c6b3ecc 100644 --- a/server.go +++ b/server.go @@ -63,7 +63,7 @@ func (p *Server) processPacket(packet *Packet) { t := time.Time{} t.UnmarshalBinary(packet.data) 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) + sendICMP(*p.conn, packet.src, "", "", (uint32)(PING), packet.data, packet.rproto, 0) return }