constants

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TunName    = "utun"
	TunGateway = "10.255.0.1/30"
	TunMtu     = 1500
)
View Source
const (
	DbFileName = "config.json"
)
View Source
const (
	DefaultHubPort = 9000
)
View Source
const DnsPort = "53"

Variables

View Source
var (
	Version   = "undefined"
	BuildTime = "undefined"
)
View Source
var Path path

Functions

This section is empty.

Types

type DnsType added in v0.8.0

type DnsType string
const (
	LocalDns  DnsType = "local"
	RemoteDns DnsType = "remote"
	BoostDns  DnsType = "boost"
)

type Policy added in v0.16.7

type Policy string
const (
	PolicyDirect Policy = "DIRECT"
	PolicyProxy  Policy = "PROXY"
	PolicyReject Policy = "REJECT"
)

type RuleType added in v0.8.0

type RuleType string
const (
	RuleIpCidr        RuleType = "IP-CIDR"
	RuleDomain        RuleType = "DOMAIN"
	RuleDomainKeyword RuleType = "DOMAIN-KEYWORD"
	RuleDomainRegex   RuleType = "DOMAIN-REGEX"
	RuleDomainSuffix  RuleType = "DOMAIN-SUFFIX"
)

Jump to

Keyboard shortcuts

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