Set Packet.ID when sending ICMP requests

This commit is contained in:
Charlie Jonas
2021-11-30 11:51:03 +00:00
parent 27679364c9
commit 779d1e9195

View File

@@ -749,6 +749,7 @@ func (p *Pinger) sendICMP(conn packetConn) error {
IPAddr: p.ipaddr,
Addr: p.addr,
Seq: p.sequence,
ID: p.id,
}
handler(outPkt)
}