mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-20 01:00:56 +00:00
chore: remove redundant lines for DSCP
This commit is contained in:
parent
82361a8adf
commit
e1fcd4654b
1 changed files with 0 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue