mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 04:53:44 +08:00
fix: change default tun dns-hijack
This commit is contained in:
parent
a45c61f19e
commit
ebe548438c
@ -32,7 +32,7 @@ pub fn use_tun(mut config: Mapping, enable: bool) -> Mapping {
|
|||||||
revise!(tun_val, "enable", enable);
|
revise!(tun_val, "enable", enable);
|
||||||
if enable {
|
if enable {
|
||||||
append!(tun_val, "stack", "gvisor");
|
append!(tun_val, "stack", "gvisor");
|
||||||
append!(tun_val, "dns-hijack", vec!["198.18.0.2:53"]);
|
append!(tun_val, "dns-hijack", vec!["any:53"]);
|
||||||
append!(tun_val, "auto-route", true);
|
append!(tun_val, "auto-route", true);
|
||||||
append!(tun_val, "auto-detect-interface", true);
|
append!(tun_val, "auto-detect-interface", true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user