outproxy

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultName   = "outproxy"
	DefaultListen = "127.0.0.1:1080"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name             string
	Listen           string
	Address          net.IP
	MTU              uint64
	MWO              int
	MRO              int
	Proxies          []ProxyConfig
	DefaultProxyURL  string
	HandshakeTimeout time.Duration
	Log              Logger
}

type Logger

type Logger = logger.Logger

type ProxyConfig

type ProxyConfig = sockstun.ProxyConfig

type Tun

type Tun struct {
	*vtun.VTun
	// contains filtered or unexported fields
}

func Create

func Create(cfg Config) (*Tun, error)

func (*Tun) Close

func (t *Tun) Close() error

func (*Tun) DefaultProxyURL

func (t *Tun) DefaultProxyURL() string

func (*Tun) Network

func (t *Tun) Network() gonnect.Network

func (*Tun) Proxies

func (t *Tun) Proxies() []ProxyConfig

func (*Tun) SetProxies

func (t *Tun) SetProxies(cfgs []ProxyConfig, defaultProxyURL string) error

func (*Tun) SocksAddr

func (t *Tun) SocksAddr() net.Addr

Jump to

Keyboard shortcuts

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