distribution

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Dns DnsDistribution
}

func NewTun added in v0.11.0

func NewTun(
	boostDns []string,
	remoteDns []string,
	localDns []string,
	defaultInterfaceName string,
	disableCache bool,
) (Config, error)

func (Config) ConnMatcher added in v0.13.0

func (c Config) ConnMatcher(metadata *C.Metadata, _ ruleEngine.Rule) (ruleEngine.Rule, error)

type DnsDistribution

type DnsDistribution struct {
	Local  SubDnsDistribution
	Remote SubDnsDistribution
	Boost  SubDnsDistribution
}

func NewDnsDistribution

func NewDnsDistribution(
	bootDns []string,
	remoteDns []string,
	localDns []string,
	defaultInterfaceName string,
	disableCache bool,
) (DnsDistribution, error)

type SubDnsDistribution

type SubDnsDistribution struct {
	Addresses []string
	Client    cResolver.Resolver
}

type SystemProxyConfig added in v0.11.0

type SystemProxyConfig struct {
}

func NewSystemProxy added in v0.11.0

func NewSystemProxy() (SystemProxyConfig, error)

func (SystemProxyConfig) ConnMatcher added in v0.13.0

func (c SystemProxyConfig) ConnMatcher(metadata *C.Metadata, _ ruleEngine.Rule) (ruleEngine.Rule, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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