socks5forward

package
v0.0.0-...-2dbdbee Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Proxy

func Proxy(dst io.Writer, src io.Reader) error

func StartSocks5Forward

func StartSocks5Forward(forwardSocks5Addr string, listenFail chan struct{})

StartSocks5Forward 启动socks5转发

Types

type TCPDial

type TCPDial func(ctx context.Context, net_, addr string) (net.Conn, error)

func DefaultTCPDial

func DefaultTCPDial() TCPDial

DefaultTCPDial is the default dial function used by the server

func UpstreamSocks5TCPDial

func UpstreamSocks5TCPDial(proxyServer string) TCPDial

UpstreamSocks5TCPDial 转发到上游socks5代理

type UserConnectHandle

type UserConnectHandle func(ctx context.Context, writer io.Writer, request *socks5.Request) error

Jump to

Keyboard shortcuts

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