constants

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TunName      = "utun"
	TunLocalAddr = "10.255.0.2"
	TunGateway   = "10.255.0.1"
	TunMask      = "255.255.255.255"
	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 RuleConfig added in v0.8.0

type RuleConfig string
const (
	RuleIpCidr RuleConfig = "IP-CIDR"
	RuleDomain RuleConfig = "DOMAIN"
)

type RuleType added in v0.8.0

type RuleType string
const (
	RuleBypass RuleType = "bypass"
	RuleProxy  RuleType = "proxy"
)

Jump to

Keyboard shortcuts

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