socks5

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Version = 5

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command = uint8
const (
	CmdConnect Command = 1
	CmdBind    Command = 2
	CmdUdp     Command = 3
)

type DialFunc

type DialFunc func(network, addr string) (net.Conn, error)

type Proxy

type Proxy struct {
	Udp string
	// contains filtered or unexported fields
}

func (*Proxy) Handle

func (p *Proxy) Handle(tcpIn chan<- *constant.TCPContext) error

func (*Proxy) New

func (p *Proxy) New(wg *sync.WaitGroup, conf *constant.Server, uuid uuid.UUID, conn net.Conn) error

Jump to

Keyboard shortcuts

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