Documentation ¶
Overview ¶
Current limitations:
- GSS-API authentication is not supported
- only SOCKS version 5 is supported
- TCP bind and UDP not yet supported
Example http client over SOCKS5:
proxy := &socks.Proxy{"127.0.0.1:1080"} tr := &http.Transport{ Dial: proxy.Dial, } client := &http.Client{Transport: tr} resp, err := client.Get("https://example.com")
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ProxiedAddr ¶
func (*ProxiedAddr) Network ¶
func (a *ProxiedAddr) Network() string
func (*ProxiedAddr) String ¶
func (a *ProxiedAddr) String() string
type Proxy ¶
func (*Proxy) DialContext ¶
Click to show internal directories.
Click to hide internal directories.