Documentation ¶
Index ¶
- func Dial(targetAddr string, ...) (net.Conn, error)
- func IsSocks5Schema(addr string) (string, bool)
- func ParseProxyConn(conn net.Conn, password []byte) (net.Conn, string)
- func SetDNS(err error, dnsIP string)
- func ToProxyConn(conn net.Conn, tgtHost string, tgtPort uint16, password []byte) (net.Conn, error)
- func ToSocks5(c net.Conn, host string, port uint16) (net.Conn, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dial ¶
func Dial(targetAddr string, dialAddr func(domain string) (proxyAddr string, password []byte)) (net.Conn, error)
Dial dial targetAddr with possiable proxy address
func IsSocks5Schema ¶
func ParseProxyConn ¶ added in v0.7.4
func ToProxyConn ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.