Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvUseNetstackMode = "NB_USE_NETSTACK_MODE" // EnvSocks5ListenerPort overrides the port the SOCKS5 proxy listens on. EnvSocks5ListenerPort = "NB_SOCKS5_LISTENER_PORT" // EnvSocks5ListenerAddress overrides the host/IP the SOCKS5 proxy binds to. // The proxy is a bridge for local host applications into the userspace // WireGuard netstack, so it binds to loopback by default. Override this only // when the proxy must be reachable from other hosts (e.g. a container // gateway); doing so exposes an unauthenticated SOCKS5 proxy on that // address. EnvSocks5ListenerAddress = "NB_SOCKS5_LISTENER_ADDRESS" )
View Source
const (
DefaultSocks5Port = 1080
)
View Source
const EnvSkipProxy = "NB_NETSTACK_SKIP_PROXY"
Variables ¶
This section is empty.
Functions ¶
func ListenAddr ¶
func ListenAddr() string
Types ¶
type NSDialer ¶
type NSDialer struct {
// contains filtered or unexported fields
}
func NewNSDialer ¶
type NetStackTun ¶
type NetStackTun struct {
// contains filtered or unexported fields
}
func NewNetStackTun ¶
func (*NetStackTun) Close ¶
func (t *NetStackTun) Close() error
Click to show internal directories.
Click to hide internal directories.