socks5

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSResolver

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

func NewDNSResolver

func NewDNSResolver(dns string) *DNSResolver

func (*DNSResolver) Resolve

func (d *DNSResolver) Resolve(ctx context.Context, name string) (context.Context, net.IP, error)

Resolve implement interface NameResolver

type Socks5

type Socks5 struct {
	StaticCredentials   map[string]string `cfg:"static_credentials"`
	NoAuthAuthenticator bool              `cfg:"no_auth_authenticator"`
	DNS                 string            `cfg:"dns"`
}

func (*Socks5) Middleware

func (m *Socks5) Middleware(ctx context.Context, name string) (func(lconn *net.TCPConn) error, error)

Jump to

Keyboard shortcuts

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