basic

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDialer

func NewDialer(options Options) (common.Dialer, error)

Types

type Dialer

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

func (*Dialer) DialContext

func (d *Dialer) DialContext(ctx context.Context, network string, address common.SocksAddr) (net.Conn, error)

func (*Dialer) ListenPacket

func (d *Dialer) ListenPacket(ctx context.Context, address common.SocksAddr) (net.PacketConn, error)

type Options

type Options struct {
	BindInterface string      `yaml:"bind-interface,omitempty"`
	BindIPv4      *netip.Addr `yaml:"bind-ipv4,omitempty"`
	BindIPv6      *netip.Addr `yaml:"bind-ipv6,omitempty"`
	SoMark        *uint32     `yaml:"so-mark,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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