socks5

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package socks5 provides a minimal SOCKS5 CONNECT-only server. It exists so the trustwatch image can double as its own tunnel relay in air-gapped clusters that cannot pull a dedicated proxy image.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Addr string // listen address, default ":1080"
}

Server is a minimal SOCKS5 proxy that only supports the CONNECT command with no authentication. It resolves DNS on the server side, which is the whole point — the relay pod runs inside the cluster where cluster DNS works.

func (*Server) ListenAndServe

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

ListenAndServe starts the SOCKS5 server. It blocks until ctx is canceled.

Jump to

Keyboard shortcuts

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