~挑战默认fakeip6的数值,并将fakeip变量化

This commit is contained in:
juewuy
2026-10-24 14:14:00 +08:00
parent 783453aabf
commit 529d16fa75
6 changed files with 27 additions and 24 deletions
+3
View File
@@ -15,6 +15,9 @@
routing_mark=$((fwmark + 2))
[ -z "$table" ] && table=100
[ -z "$fakeip4" ] && fakeip4="198.18.0.0/15"
[ -z "$fakeip6" ] && fakeip6="2001:2::/64"
[ -z "$dns_nameserver" ] && {
dns_nameserver='223.5.5.5, 1.2.4.8'
netstat -ntlup 2>/dev/null | grep -q '127.0.0.1:53' || ss -ntlup 2>/dev/null | grep -q '127.0.0.1:53' && dns_nameserver='127.0.0.1'