This commit is contained in:
esrrhs 2019-10-25 21:19:00 +08:00
parent 2fda6b845c
commit d34ecbaca6

View File

@ -87,6 +87,10 @@ func recvICMP(conn icmp.PacketConn, recv chan<- *Packet) {
}
}
if n <= 0 {
continue
}
echoId := int(binary.BigEndian.Uint16(bytes[4:6]))
echoSeq := int(binary.BigEndian.Uint16(bytes[6:8]))