Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
App = new(Config)
)
Functions ¶
Types ¶
type Controller ¶
type DNS ¶
type DNS struct {
Enable bool `yaml:""`
NameServers []dns.NameServer `yaml:""`
Listen string `yaml:""`
Port int `yaml:""`
Hosts *trie.DomainTrie
}
type ListenPrefix ¶ added in v1.0.3
func (ListenPrefix) Build ¶ added in v1.0.3
func (p ListenPrefix) Build() netip.Prefix
func (ListenPrefix) MarshalYAML ¶ added in v1.0.3
func (p ListenPrefix) MarshalYAML() (interface{}, error)
func (*ListenPrefix) UnmarshalYAML ¶ added in v1.0.3
func (p *ListenPrefix) UnmarshalYAML(node *yaml.Node) error
type RawConfig ¶
type Tun ¶ added in v1.0.3
type Tun struct {
Enable bool `yaml:",default=false"`
Stack string `yaml:",default=system"`
DNSHijack []string `yaml:""`
Inet4Address []ListenPrefix `yaml:"-"`
Inet4RouteAddress []ListenPrefix `yaml:"-"`
}
Click to show internal directories.
Click to hide internal directories.