Versions in this module Expand all Collapse all v1 v1.0.0 Nov 4, 2022 Changes in this version + func Init(dir string) error + type Config struct + DNS *DNS + Experimental *Experimental + General *General + Hosts *trie.DomainTrie + Profile *Profile + Providers map[string]providerTypes.ProxyProvider + Proxies map[string]C.Proxy + Rules []C.Rule + Users []auth.AuthUser + func Parse(buf []byte) (*Config, error) + func ParseRawConfig(rawCfg *RawConfig) (*Config, error) + type Controller struct + ExternalController string + ExternalUI string + Secret string + type DNS struct + DefaultNameserver []dns.NameServer + Enable bool + EnhancedMode C.DNSMode + FakeIPRange *fakeip.Pool + Fallback []dns.NameServer + FallbackFilter FallbackFilter + Hosts *trie.DomainTrie + IPv6 bool + Listen string + NameServer []dns.NameServer + NameServerPolicy map[string]dns.NameServer + type Experimental struct + type FallbackFilter struct + Domain []string + GeoIP bool + GeoIPCode string + IPCIDR []*net.IPNet + type General struct + IPv6 bool + Interface string + LogLevel log.LogLevel + Mode T.TunnelMode + type Inbound struct + AllowLan bool + Authentication []string + BindAddress string + MixedPort int + Port int + RedirPort int + SocksPort int + TProxyPort int + type Profile struct + StoreFakeIP bool + StoreSelected bool + type RawConfig struct + AllowLan bool + Authentication []string + BindAddress string + DNS RawDNS + Experimental Experimental + ExternalController string + ExternalUI string + Hosts map[string]string + IPv6 bool + Interface string + LogLevel log.LogLevel + MixedPort int + Mode T.TunnelMode + Port int + Profile Profile + Proxy []map[string]interface{} + ProxyGroup []map[string]interface{} + ProxyProvider map[string]map[string]interface{} + RedirPort int + Rule []string + Secret string + SocksPort int + TProxyPort int + func UnmarshalRawConfig(buf []byte) (*RawConfig, error) + type RawDNS struct + DefaultNameserver []string + Enable bool + EnhancedMode C.DNSMode + FakeIPFilter []string + FakeIPRange string + Fallback []string + FallbackFilter RawFallbackFilter + IPv6 bool + Listen string + NameServer []string + NameServerPolicy map[string]string + UseHosts bool + type RawFallbackFilter struct + Domain []string + GeoIP bool + GeoIPCode string + IPCIDR []string