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.
const ( ReplySucceeded ReplyCode = iota ReplyGeneralFailure ReplyConnectionNotAllowed ReplyNetworkUnreachable ReplyHostUnreachable ReplyConnectionRefused ReplyTTLExpired ReplyCommandNotSupported ReplyAddressNotSupported )
The various SOCKS 5 reply codes from RFC 1928.
func ErrorToReplyCode ¶
ErrorToReplyCode converts an error to the "best" reply code.
Click to show internal directories.
Click to hide internal directories.