Skip to content

Commit

Permalink
netstack/udp: fix cond for demuxing onto existing dst
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous committed Aug 31, 2024
1 parent 10e97a2 commit fef213a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intra/netstack/udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func udpForwarder(s *stack.Stack, h GUDPConnHandler) *udp.Forwarder {
}

demux := func(newdst netip.AddrPort) error {
if newdst == dst {
if newdst.Compare(dst) == 0 {
log.D("ns: udp: demuxer: no-op; src(%v) same as dst(%v)", src, newdst)
return nil
}
Expand Down

1 comment on commit fef213a

@ignoramous
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#77

Please sign in to comment.