Versions in this module Expand all Collapse all v1 v1.20.1 May 10, 2024 v1.20.0 Nov 9, 2023 v1.19.0 Nov 8, 2023 v1.18.1 Nov 8, 2023 Changes in this version + func Init(dir string) error + type Config struct + DNS *DNS + Experimental *Experimental + General *General + Hosts *trie.DomainTrie + Inbounds []C.Inbound + Profile *Profile + Providers map[string]providerTypes.ProxyProvider + Proxies map[string]C.Proxy + Rules []C.Rule + Tunnels []Tunnel + 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 + SearchDomains []string + type Experimental struct + UDPFallbackMatch bool + type FallbackFilter struct + Domain []string + GeoIP bool + GeoIPCode string + IPCIDR []*net.IPNet + type General struct + Authentication []string + IPv6 bool + Interface string + LogLevel log.LogLevel + Mode T.TunnelMode + RoutingMark int + type LegacyInbound struct + AllowLan bool + 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 + Inbounds []C.Inbound + Interface string + LogLevel log.LogLevel + MixedPort int + Mode T.TunnelMode + Port int + Profile Profile + Proxy []map[string]any + ProxyGroup []map[string]any + ProxyProvider map[string]map[string]any + RedirPort int + RoutingMark int + Rule []string + Secret string + SocksPort int + TProxyPort int + Tunnels []Tunnel + 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 + SearchDomains []string + UseHosts bool + type RawFallbackFilter struct + Domain []string + GeoIP bool + GeoIPCode string + IPCIDR []string + type Tunnel tunnel + func (t *Tunnel) UnmarshalYAML(unmarshal func(any) error) error