constants

package
v1.9.0 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: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	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 (
	IpRuleTypes      = []RuleType{RuleIpCidr}
	DomainRuleTypes  = []RuleType{RuleDomain, RuleDomainSuffix, RuleDomainRegex}
	ProcessRuleTypes = []RuleType{RuleProcess}
)
View Source
var (
	Version   = "undefined"
	BuildTime = "undefined"
)
View Source
var Path path

Functions

func TunName

func TunName() string

Types

type DnsType added in v0.8.0

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

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"
	RuleProcess       RuleType = "PROCESS"
	RuleBuiltIn       RuleType = "BUILT-IN"
)

Jump to

Keyboard shortcuts

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