fix: SA4001 for netDialer copy
This commit is contained in:
parent
7cc1c1b561
commit
2c4783ff8b
1 changed files with 2 additions and 1 deletions
|
@ -116,7 +116,8 @@ func dialContext(ctx context.Context, network string, destination netip.Addr, po
|
|||
case nil:
|
||||
netDialer = &net.Dialer{}
|
||||
case *net.Dialer:
|
||||
netDialer = &*netDialer.(*net.Dialer) // make a copy
|
||||
_netDialer := *netDialer.(*net.Dialer)
|
||||
netDialer = &_netDialer // make a copy
|
||||
default:
|
||||
return netDialer.DialContext(ctx, network, address)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue