socksproxy

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LoopbackResolver = ResolveTo(net.IPv4(127, 0, 0, 1))
View Source
var LoopbackRewriter, _ = RedirectTo("127.0.0.1:0")

Functions

func ListenAndServe

func ListenAndServe(ctx context.Context, c *Config) error

func RedirectTo

func RedirectTo(addr string) (socks5.AddressRewriter, error)

func ResolveTo

func ResolveTo(resp net.IP) socks5.NameResolver

Types

type Config

type Config struct {
	ListenAddress string
	socks5.NameResolver
	socks5.AddressRewriter
}

Jump to

Keyboard shortcuts

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