From e7fecd4e1cc2bd19274c1901fd3388488bd3d169 Mon Sep 17 00:00:00 2001 From: esrrhs Date: Thu, 20 Dec 2018 14:31:01 +0800 Subject: [PATCH] fix --- pingtunnel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pingtunnel.go b/pingtunnel.go index b7ad25c..2a3b1dd 100644 --- a/pingtunnel.go +++ b/pingtunnel.go @@ -196,7 +196,7 @@ func recvICMP(conn icmp.PacketConn, recv chan<- *Packet) { return } - recv <- &Packet{msgType: my.TYPE, data: my.Data, id: my.ID, target: my.TARGET, src: srcaddr.(*net.IPAddr), rproto: (int)(my.RPROTO)} + recv <- &Packet{msgType: my.TYPE, data: my.Data, id: my.ID, target: my.TARGET, src: srcaddr.(*net.IPAddr), rproto: (int)((int16)(my.RPROTO))} } }