Versions in this module Expand all Collapse all v1 v1.0.3 Jan 31, 2023 Changes in this version type Config + Tun *Tun + type ListenPrefix netip.Prefix + func (p *ListenPrefix) UnmarshalYAML(node *yaml.Node) error + func (p ListenPrefix) Build() netip.Prefix + func (p ListenPrefix) MarshalYAML() (interface{}, error) type RawConfig + Tun *Tun + type Tun struct + DNSHijack []string + Enable bool + Inet4Address []ListenPrefix + Inet4RouteAddress []ListenPrefix + Stack string v1.0.2 Dec 24, 2022 Changes in this version type Config + Outbound *Outbound + type Outbound struct + Interface string + RoutingMark int type RawConfig + Outbound *Outbound + func (c *RawConfig) Parse() error v1.0.1 Dec 23, 2022 v1.0.0 Dec 23, 2022 Changes in this version + var App = new(Config) + func Init(dir string) error + func Load(changeCh chan bool) error + type Config struct + Controller *Controller + DNS *DNS + Hosts *trie.DomainTrie + Inbound *Inbound + Log *Log + Users []auth.AuthUser + Whitelist []net.IP + type Controller struct + Enable bool + Listen string + Port int + Secret string + type DNS struct + Enable bool + Hosts *trie.DomainTrie + Listen string + NameServers []dns.NameServer + Port int + type Inbound struct + Listen string + Port int + type Log struct + Compress bool + Filename string + Level string + MaxAge int + MaxBackups int + MaxSize int + Output *lumberjack.Logger + type RawConfig struct + Auth map[string]string + Controller *Controller + DNS RawDNS + Hosts map[string]string + Inbound *Inbound + Log *Log + WhiteList []string + func (c *RawConfig) Parge() error + type RawDNS struct + Enable bool + Listen string + NameServers []string + Port int