From b83e6e7d450533210050f7980d81aa37847d8586 Mon Sep 17 00:00:00 2001 From: esrrhs Date: Tue, 18 Dec 2018 19:07:35 +0800 Subject: [PATCH] add --- pingtunnel.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pingtunnel.go b/pingtunnel.go index c6207ea..090f6a0 100644 --- a/pingtunnel.go +++ b/pingtunnel.go @@ -16,7 +16,7 @@ import ( ) const ( - DATA uint32 = 0xDEADBEEF + DATA uint32 = 0x01010101 ) // An Echo represents an ICMP echo request or reply message body. @@ -99,7 +99,7 @@ func sendICMP(conn icmp.PacketConn, server *net.IPAddr, target string, connId st } msg := &icmp.Message{ - Type: ipv4.ICMPTypeTimestamp, + Type: ipv4.ICMPTypeExtendedEchoRequest, Code: 0, Body: m, }