Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SelectorClock use clock selector SelectorClock = Selectors("clock") // SelectorRandom use random selector SelectorRandom = Selectors("random") // SelectorSWRR use Smooth-weighted-round-robin selector SelectorSWRR = Selectors("swrr") // SelectorWRandom use Weighted-random selector SelectorWRandom = Selectors("wrandom") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ConfigFile string `toml:"-"` Config typeGeneralConfig `toml:"config"` HTTPS []typeUpstreamHTTPS `toml:"https"` TLS []typeUpstreamTLS `toml:"tls"` Traditional []typeTraditional `toml:"traditional"` Hosts map[string]map[string][]string `toml:"hosts"` }
Config described user configuration
func LoadConfig ¶
LoadConfig from configuration file
type DNSSettings ¶
type DNSSettings struct { CustomECS []net.IP `toml:"custom_ecs"` FallbackNoECS bool `toml:"fallback_no_ecs"` NoECS bool `toml:"no_ecs"` UserAgent string `toml:"user_agent"` NoUserAgent bool `toml:"no_user_agent"` NoSingleInflight bool `toml:"no_single_inflight"` }
DNSSettings described general settings of DNS resolver
Click to show internal directories.
Click to hide internal directories.