pub struct ClashConfigDef {Show 26 fields
+ pub port: Option<u16>,
+ pub socks_port: Option<u16>,
+ pub mixed_port: Option<u16>,
+ pub authentication: Vec<String, Global>,
+ pub allow_lan: bool,
+ pub bind_address: String,
+ pub mode: RunMode,
+ pub log_level: LogLevel,
+ pub dns: DNS,
+ pub profile: Profile,
+ pub proxy: Vec<HashMap<String, Value, RandomState>, Global>,
+ pub proxy_group: Vec<HashMap<String, Value, RandomState>, Global>,
+ pub rule: Vec<String, Global>,
+ pub hosts: HashMap<String, String, RandomState>,
+ pub mmdb: String,
+ pub mmdb_download_url: Option<String>,
+ pub ipv6: Option<bool>,
+ pub external_controller: Option<String>,
+ pub external_ui: Option<String>,
+ pub secret: Option<String>,
+ pub interface: Option<String>,
+ pub routing_mask: Option<u32>,
+ pub proxy_provider: Option<HashMap<String, HashMap<String, Value, RandomState>, RandomState>>,
+ pub rule_provider: Option<HashMap<String, HashMap<String, Value, RandomState>, RandomState>>,
+ pub experimental: Option<Experimental>,
+ pub tun: Option<HashMap<String, Value, RandomState>>,
+ /* private fields */
+}
docs for clash +Example
+port: 7890
+
port: Option<u16>
The HTTP proxy port
+socks_port: Option<u16>
The SOCKS5 proxy port
+mixed_port: Option<u16>
§authentication: Vec<String, Global>
HTTP and SOCKS5 proxy authentication
+allow_lan: bool
bind_address
Allow connections to the local-end server from other LAN IP addresses
+bind_address: String
The address that the inbound listens on
+*
will listen on all interfaces, which is essentially the same as setting it to 0.0.0.0
allow_lan
automaticallyallow_lan
to be enabled, you should set this to localhost
or 127.1
mode: RunMode
Clash router working mode
+Either rule
, global
or direct
log_level: LogLevel
Log level
+Either debug
, info
, warning
, error
or off
dns: DNS
DNS client/server settings
+profile: Profile
Profile settings
+proxy: Vec<HashMap<String, Value, RandomState>, Global>
Proxy settings
+proxy_group: Vec<HashMap<String, Value, RandomState>, Global>
Proxy group settings
+rule: Vec<String, Global>
Rule settings
+hosts: HashMap<String, String, RandomState>
Hosts
+mmdb: String
Country database path relative to the $CWD
+mmdb_download_url: Option<String>
Country database download url
+ipv6: Option<bool>
these options has default vals, +and needs extra processing
+external_controller: Option<String>
external controller address
+external_ui: Option<String>
dashboard folder path relative to the $CWD
+secret: Option<String>
external controller secret
+interface: Option<String>
§routing_mask: Option<u32>
§proxy_provider: Option<HashMap<String, HashMap<String, Value, RandomState>, RandomState>>
proxy provider settings
+rule_provider: Option<HashMap<String, HashMap<String, Value, RandomState>, RandomState>>
rule provider settings
+experimental: Option<Experimental>
experimental settings, if any
+tun: Option<HashMap<String, Value, RandomState>>
pub struct ClashDNSConfigDef {
+ pub enable: bool,
+ pub ipv6: bool,
+ pub user_hosts: bool,
+ pub nameserver: Vec<String, Global>,
+ pub fallback: Vec<String, Global>,
+ pub fallback_filter: FallbackFilter,
+ pub listen: Option<DNSListen>,
+ pub enhanced_mode: DNSMode,
+ pub fake_ip_range: String,
+ pub fake_ip_filter: Vec<String, Global>,
+ pub default_nameserver: Vec<String, Global>,
+ pub nameserver_policy: HashMap<String, String, RandomState>,
+}
DNS client/server settings +This section is optional. When not present, the DNS server will be disabled and system DNS config will be used
+dns:
+ enable: true
+ ipv6: false # when the false, response to AAAA questions will be empty
+ listen:
+ udp: 127.0.0.1:5353
+ tcp: 127.0.0.1:5353
+ doh: 127.0.0.1:5354
+ dot: 127.0.0.1:5355
+
enable: bool
When disabled, system DNS config will be used +All other DNS related options will only be used when this is enabled
+ipv6: bool
When false, response to AAAA questions will be empty
+user_hosts: bool
Whether to Config::hosts
as when resolving hostnames
nameserver: Vec<String, Global>
DNS servers
+fallback: Vec<String, Global>
Fallback DNS servers
+fallback_filter: FallbackFilter
Fallback DNS filter
+listen: Option<DNSListen>
DNS server listening address. If not present, the DNS server will be disabled.
+enhanced_mode: DNSMode
Whether to use fake IP addresses
+fake_ip_range: String
Fake IP addresses pool CIDR
+fake_ip_filter: Vec<String, Global>
Fake IP addresses filter
+default_nameserver: Vec<String, Global>
Default nameservers, used to resolve DoH hostnames
+nameserver_policy: HashMap<String, String, RandomState>
Lookup domains via specific nameservers
+U::from(self)
.","Calls U::from(self)
.","these options has default vals, and needs extra processing","When false, response to AAAA questions will be empty","DNS server listening address. If not present, the DNS …","Log level Either debug
, info
, warning
, error
or off
","The HTTP/SOCKS5 mixed proxy port","Country database path relative to the $CWD","Country database download url","Clash router working mode Either rule
, global
or direct
","DNS servers","Lookup domains via specific nameservers","The HTTP proxy port","Profile settings","Proxy settings","Proxy group settings","proxy provider settings","fwmark on Linux only","Rule settings","rule provider settings","external controller secret","","","The SOCKS5 proxy port","","","","","tun settings","","","Whether to Config::hosts
as when resolving hostnames","",""],"i":[0,0,1,1,1,1,2,1,2,1,2,2,1,2,1,2,2,1,2,1,1,1,2,2,2,2,1,2,1,1,1,1,2,1,2,2,1,1,1,1,1,2,2,1,1,1,1,1,1,1,1,1,1,2,1,1,2,1,2,1,1,2,2,1,2],"f":[0,0,0,0,0,[[]],[[]],[[]],[[]],[[],1],[[],2],0,[3,[[4,[1]]]],[3,[[4,[2]]]],0,0,0,[5,[[4,[6,7]]]],[5,[[4,[6,7]]]],0,0,0,0,0,0,0,[[]],[[]],[8,[[4,[1]]]],0,0,[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[1,9],4],[[2,9],4],0,[[],4],[[],4],[[],4],[[],4],0,[[],10],[[],10],0,[[]],[[]]],"c":[2,33],"p":[[3,"ClashConfigDef"],[3,"ClashDNSConfigDef"],[8,"Deserializer"],[4,"Result"],[8,"Serializer"],[3,"Ok"],[3,"Error"],[15,"str"],[8,"Serializer"],[3,"TypeId"]]}\
+}');
+if (typeof window !== 'undefined' && window.initSearch) {window.initSearch(searchIndex)};
+if (typeof exports !== 'undefined') {exports.searchIndex = searchIndex};
diff --git a/docs/settings.html b/docs/settings.html
new file mode 100644
index 00000000..5675d453
--- /dev/null
+++ b/docs/settings.html
@@ -0,0 +1 @@
+fn:
) to \
+ restrict the search to a given item kind.","Accepted kinds are: fn
, mod
, struct
, \
+ enum
, trait
, type
, macro
, \
+ and const
.","Search functions by type signature (e.g., vec -> usize
or \
+ -> vec
or String, enum:Cow -> bool
)","You can look for items with an exact name by putting double quotes around \
+ your request: \"string\"
","Look for items inside another one by searching for a path: vec::Vec
",].map(x=>""+x+"
").join("");const div_infos=document.createElement("div");addClass(div_infos,"infos");div_infos.innerHTML="${value}
`}else{error[index]=value}});output+=`