From 59ae32e16895d04390bef653d4873631959057ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= Date: Mon, 20 Mar 2023 01:07:52 +0000 Subject: [PATCH] Update CFwarp.sh --- CFwarp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CFwarp.sh b/CFwarp.sh index d2db5a4..5d17331 100644 --- a/CFwarp.sh +++ b/CFwarp.sh @@ -324,7 +324,7 @@ green "MTU最佳网络吞吐量值= $MTU 已设置完毕" first4(){ checkwgcf if [[ $wgcfv4 =~ on|plus && -z $wgcfv6 ]]; then -[[ -e /etc/gai.conf 2>/dev/null ]] && grep -qE '^ *precedence ::ffff:0:0/96 100' /etc/gai.conf || echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf +[[ -e /etc/gai.conf ]] && grep -qE '^ *precedence ::ffff:0:0/96 100' /etc/gai.conf || echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf 2>/dev/null sed -i '/^label 2002::\/16 2/d' /etc/gai.conf 2>/dev/null else sed -i '/^precedence ::ffff:0:0\/96 100/d;/^label 2002::\/16 2/d' /etc/gai.conf 2>/dev/null