socks5
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package socks5 is a SOCKS5 server implementation.
This is used for userspace networking in Tailscale. Specifically,this is used for dialing out of the machine to other nodes, withoutthe host kernel's involvement, so it doesn't proper routing tables,TUN, IPv6, etc. This package is meant to only handle the SOCKS5 protocoldetails and not any integration with Tailscale internals itself.
The glue between this package and Tailscale is in net/socks5/tssocks.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeConn¶
type Conn struct {// contains filtered or unexported fields}Conn is a SOCKS5 connection for client to reachserver.
typeServer¶
type Server struct {// Logf optionally specifies the logger to use.// If nil, the standard logger is used.Logflogger.Logf// Dialer optionally specifies the dialer to use for outgoing connections.// If nil, the net package's standard dialer is used.Dialer func(ctxcontext.Context, network, addrstring) (net.Conn,error)// Username and Password, if set, are the credential clients must provide.UsernamestringPasswordstring}Server is a SOCKS5 proxy server.