dialer

package
v1.11.0-alpha.12 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: GPL-2.0 Imports: 21 Imported by: 42

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WgControlFns []control.Func

Functions

func DialSlowContext added in v1.1.0

func DialSlowContext(dialer *tcpDialer, ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)

func New

func New(ctx context.Context, options option.DialerOptions) (N.Dialer, error)

func NewDefaultOutbound added in v1.11.0

func NewDefaultOutbound(outboundManager adapter.OutboundManager) N.Dialer

func NewDetour

func NewDetour(outboundManager adapter.OutboundManager, detour string) N.Dialer

Types

type DefaultDialer

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

func NewDefault

func NewDefault(networkManager adapter.NetworkManager, options option.DialerOptions) (*DefaultDialer, error)

func (*DefaultDialer) DialContext

func (d *DefaultDialer) DialContext(ctx context.Context, network string, address M.Socksaddr) (net.Conn, error)

func (*DefaultDialer) ListenPacket

func (d *DefaultDialer) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)

func (*DefaultDialer) ListenPacketCompat added in v1.8.0

func (d *DefaultDialer) ListenPacketCompat(network, address string) (net.PacketConn, error)

type DefaultOutboundDialer added in v1.11.0

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

func (*DefaultOutboundDialer) DialContext added in v1.11.0

func (d *DefaultOutboundDialer) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)

func (*DefaultOutboundDialer) ListenPacket added in v1.11.0

func (d *DefaultOutboundDialer) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)

func (*DefaultOutboundDialer) Upstream added in v1.11.0

func (d *DefaultOutboundDialer) Upstream() any

type DetourDialer

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

func (*DetourDialer) DialContext

func (d *DetourDialer) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)

func (*DetourDialer) Dialer

func (d *DetourDialer) Dialer() (N.Dialer, error)

func (*DetourDialer) ListenPacket

func (d *DetourDialer) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)

func (*DetourDialer) Start

func (d *DetourDialer) Start() error

func (*DetourDialer) Upstream

func (d *DetourDialer) Upstream() any

type ResolveDialer

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

func NewResolveDialer

func NewResolveDialer(router adapter.Router, dialer N.Dialer, parallel bool, strategy dns.DomainStrategy, fallbackDelay time.Duration) *ResolveDialer

func (*ResolveDialer) DialContext

func (d *ResolveDialer) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)

func (*ResolveDialer) ListenPacket

func (d *ResolveDialer) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)

func (*ResolveDialer) Upstream

func (d *ResolveDialer) Upstream() any

type WireGuardListener added in v1.8.0

type WireGuardListener interface {
	ListenPacketCompat(network, address string) (net.PacketConn, error)
}

Jump to

Keyboard shortcuts

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