fix: SA4001 for netDialer copy

This commit is contained in:
gVisor bot 2023-03-10 16:17:43 +08:00
parent de80454195
commit e5a3c4dced

View file

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