enhancer

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMTU = tun.DefaultMTU
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Enhancer

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

func NewEnhancer

func NewEnhancer(config EnhancerConfig) *Enhancer

func (*Enhancer) Close

func (eh *Enhancer) Close() error

func (*Enhancer) Start

func (eh *Enhancer) Start() (err error)

type EnhancerConfig

type EnhancerConfig struct {
	Tun            tun.Options
	FakeDNS        string
	DisableRewrite bool
	DnsHijack      []netip.AddrPort
}

Jump to

Keyboard shortcuts

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