Update dependencies
This commit is contained in:
19
vendor/tailscale.com/net/netns/socks.go
generated
vendored
Normal file
19
vendor/tailscale.com/net/netns/socks.go
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
//go:build !ios && !js
|
||||
|
||||
package netns
|
||||
|
||||
import "golang.org/x/net/proxy"
|
||||
|
||||
func init() {
|
||||
wrapDialer = wrapSocks
|
||||
}
|
||||
|
||||
func wrapSocks(d Dialer) Dialer {
|
||||
if cd, ok := proxy.FromEnvironmentUsing(d).(Dialer); ok {
|
||||
return cd
|
||||
}
|
||||
return d
|
||||
}
|
||||
Reference in New Issue
Block a user