diff --git a/listener/tproxy/udp_linux.go b/listener/tproxy/udp_linux.go index f7f0fd0f..02b51379 100644 --- a/listener/tproxy/udp_linux.go +++ b/listener/tproxy/udp_linux.go @@ -105,15 +105,10 @@ func getOrigDst(oob []byte) (netip.AddrPort, error) { // retrieve the destination address from the SCM. sa, err := unix.ParseOrigDstAddr(&scms[1]) - if err != nil { return netip.AddrPort{}, fmt.Errorf("retrieve destination: %w", err) } - if err != nil { - return netip.AddrPort{}, fmt.Errorf("retrieve DSCP: %w", err) - } - // encode the destination address into a cmsg. var rAddr netip.AddrPort switch v := sa.(type) {