Documentation ¶ Index ¶ func NewDialer(options Options) (common.Dialer, error) type Dialer func (d *Dialer) DialContext(ctx context.Context, network string, address common.SocksAddr) (net.Conn, error) func (d *Dialer) ListenPacket(ctx context.Context, address common.SocksAddr) (net.PacketConn, error) type Options 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"` } Source Files ¶ View all Source files basic.go Directories ¶ Show internal Expand all Path Synopsis control Click to show internal directories. Click to hide internal directories.