chore: remove redundant lines for DSCP

This commit is contained in:
oracl 2024-01-19 18:59:03 +08:00
parent 82361a8adf
commit e1fcd4654b

View file

@ -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) {