proxy

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseHTTP added in v0.7.1

func ParseHTTP(conn net.Conn) (net.Conn, string, error)

func ParseHTTPS added in v0.7.1

func ParseHTTPS(conn net.Conn) (net.Conn, string, error)

func StartClient

func StartClient(serverAddr, password string,
	forwards map[string]string, shouldProxy func(string) (bool, bool))

func StartDNS added in v0.7.0

func StartDNS(relayServer string, shouldProxy func(string) (bool, bool))

func StartHTTPProxy added in v0.7.1

func StartHTTPProxy(httpProxyAddr, serverAddr string, password []byte,
	shouldProxy func(string) (bool, bool))

StartHTTPProxy start http reverse proxy. The httputil.ReverseProxy do not supply enough support for https request.

func StartServer

func StartServer(relayTarget, password, cacheDir, certFile, keyFile, email string)

func StartSocks5Proxy added in v0.7.6

func StartSocks5Proxy(listenAddr, serverAddr string, password []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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