We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a61f97 commit bd393dbCopy full SHA for bd393db
src/transport/udp/udp.go
@@ -3,7 +3,6 @@
3
package udp
4
5
import (
6
- "bytes"
7
"fmt"
8
"log"
9
"net"
@@ -411,7 +410,7 @@ func sendUnreachable(packet *stack.PacketBuffer, s *stack.Stack) {
411
410
}
412
413
// The IPTables DNAT rule does not properly apply to these ICMP return packets, need to manually fake source IP in two places
414
- if LocalhostIP.IsValid() && bytes.Equal(ipv4Layer.DstIP, net.ParseIP("127.0.0.1").To4()) {
+ if LocalhostIP.IsValid() && ipv4Layer.DstIP.Equal(net.ParseIP("127.0.0.1").To4()) {
415
fakeSource = true
416
417
0 commit comments