socks5

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer

type Dialer interface {
	DialContext(context.Context, string, string) (net.Conn, error)
}

type IPv4Resolver added in v0.0.2

type IPv4Resolver interface {
	ResolveIPv4(context.Context, string) ([]net.IP, error)
}

type PacketDialer added in v0.0.2

type PacketDialer interface {
	ListenPacket(string, string) (net.PacketConn, error)
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(configStore *config.Store, dialer Dialer, logger *log.Logger) *Server

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

func (*Server) Serve

func (s *Server) Serve(ctx context.Context, listener net.Listener) error

Serve accepts SOCKS5 clients from an already-bound listener. Binding is kept outside the serving loop so a background service can report startup errors synchronously and restart on a new configured address.

Jump to

Keyboard shortcuts

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