Documentation ¶
Overview ¶
Package socks5 implements a SOCKS 5 server and the required pluggable transport specific extensions. For more information see RFC 1928 and RFC 1929.
Notes:
- GSSAPI authentication, is NOT supported.
- Only the CONNECT command is supported.
- The authentication provided by the client is always accepted as it is used as a channel to pass information rather than for authentication for pluggable transports.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReplyCode ¶
type ReplyCode byte
ReplyCode is a SOCKS 5 reply code.
type Request ¶
type Request struct { Target string Args pt.Args // contains filtered or unexported fields }
Request describes a SOCKS 5 request.
func Handshake ¶
Handshake attempts to handle a incoming client handshake over the provided connection and receive the SOCKS5 request. The routine handles sending appropriate errors if applicable, but will not close the connection.
Click to show internal directories.
Click to hide internal directories.