Documentation
¶
Overview ¶
Package socks implements the parts of the SOCKS protocol version 5 needed to accept CONNECT requests. See https://tools.ietf.org/html/rfc1928.
Index ¶
Constants ¶
Variables ¶
Functions ¶
func Authenticate ¶
Authenticate performs the SOCKS5 method negotiation, accepting only the no-authentication method (the proxy itself is unauthenticated).
func ParseRequest ¶
ParseRequest reads a SOCKS5 request and returns the requested host and port. Only the CONNECT command is supported. IPv4, IPv6, and domain-name address types are all accepted; the returned host is the literal address string.
Types ¶
Click to show internal directories.
Click to hide internal directories.