transport

package
Version: v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(address, target string, password []byte, shouldProxy func(string) bool) (net.Conn, error)

func DialTlsProxyConn

func DialTlsProxyConn(address, tgtHost string, tgtPort uint16, tlsCfg *tls.Config, password []byte) (net.Conn, error)

func IsSocks5Schema

func IsSocks5Schema(addr string) (string, bool)

func ToProxyConn

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

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