Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCommandNotSupported = errors.New("command not supported")
View Source
var ErrServerClosed = errors.New("socks5: Server closed")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
AuthMethods map[auth.Method]auth.Authenticator
// Optional.
DialContext func(ctx context.Context, network, address string) (net.Conn, error)
Listen func(ctx context.Context, network, address string) (net.Listener, error)
ListenPacket func(ctx context.Context, network, address string) (net.PacketConn, error)
}
type NotRequired ¶
type NotRequired struct{}
func (*NotRequired) Authenticate ¶
func (n *NotRequired) Authenticate(conn io.ReadWriter) error
Click to show internal directories.
Click to hide internal directories.