From 85982931b93f6ae8b441e1172b94ef1ab3adffac 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:13 +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 d664e0f..d2db5a4 100644 --- a/CFwarp.sh +++ b/CFwarp.sh @@ -324,7 +324,7 @@ green "MTU最佳网络吞吐量值= $MTU 已设置完毕" first4(){ checkwgcf if [[ $wgcfv4 =~ on|plus && -z $wgcfv6 ]]; then -[[ -n /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 2>/dev/null +[[ -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 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