proxy

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoteDial

func RemoteDial(Conn net.Conn, network, remoteAddress string) error

func StartHTTPProxyWithListener

func StartHTTPProxyWithListener(RuntimeContext context.Context, Dialer func(ctx context.Context, network, address string) (net.Conn, error), listener net.Listener) error

func StartProxyClient

func StartProxyClient(RuntimeContext context.Context, Dialer func(ctx context.Context, network, address string) (net.Conn, error), LocalAddress string) error

StartProxyClient creates a local socks5 service, and forward traffic to proxy server on `Channel`.

func StartProxyClientWithListener

func StartProxyClientWithListener(RuntimeContext context.Context, Dialer func(ctx context.Context, network, address string) (net.Conn, error), listener net.Listener) error

StartProxyClientWithListener starts a socks5 proxy on `listener` and returns once exited.

func StartProxyServer

func StartProxyServer(runtimeCtx context.Context, listener net.Listener, proxyDialTimeout time.Duration) error

Types

type ClientSession

type ClientSession struct {
	Conn net.Conn
}

ClientSession abtracts all the operations on a client connection.

Jump to

Keyboard shortcuts

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