socks5

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: AGPL-3.0 Imports: 11 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 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