transport

package
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2020 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 IsSocks5Schema(addr string) (string, bool)

func ParseProxyConn added in v0.7.4

func ParseProxyConn(conn net.Conn, password []byte) (net.Conn, string)

func SetDNS added in v0.7.4

func SetDNS(err error, dnsIP string)

func ToProxyConn

func ToProxyConn(conn net.Conn, tgtHost string, tgtPort uint16, password []byte) (net.Conn, error)

func ToSocks5

func ToSocks5(c net.Conn, host string, port uint16) (net.Conn, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL