~修复默认dns启动报错

This commit is contained in:
juewuy
2025-12-31 21:14:55 +08:00
parent a86c64cd86
commit 5e27b3fbd6
5 changed files with 3 additions and 3 deletions

View File

@@ -17,5 +17,5 @@ routing_mark=$((fwmark + 2))
[ -z "$dns_fallback" ] && dns_fallback="1.1.1.1, 8.8.8.8"
[ -z "$dns_resolver" ] && {
dns_resolver="223.5.5.5, 2400:3200::1"
cat /proc/net/udp | grep -q '0035' && dns_resolver='localhost'
cat /proc/net/udp | grep -q '0035' && dns_resolver='127.0.0.1'
}