From 9fd12052d166bfae21ffe5e80a2ead6a29c4229a Mon Sep 17 00:00:00 2001 From: fscarmen <62703343+fscarmen@users.noreply.github.com> Date: Thu, 7 Oct 2021 07:36:40 +0800 Subject: [PATCH] Update t.sh Former-commit-id: 708feef542c1e020950aee379f1214667e52178c --- old/t.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/old/t.sh b/old/t.sh index 25d1ddc..c69ff2c 100644 --- a/old/t.sh +++ b/old/t.sh @@ -201,7 +201,7 @@ install(){ green " 进度 3/3: 运行 WGCF " yellow " 后台获取 WARP IP 中…… " unset WAN4 WAN6 COUNTRY4 COUNTRY6 TRACE4 TRACE6 - onoff + net COUNTRY4=$(curl -s4 https://ip.gs/country) TRACE4=$(curl -s4 https://www.cloudflare.com/cdn-cgi/trace | grep warp | cut -d= -f2) COUNTRY6=$(curl -s6 https://ip.gs/country) @@ -210,8 +210,7 @@ install(){ # 设置开机启动 systemctl enable wg-quick@wgcf >/dev/null 2>&1 grep -qE '^@reboot[ ]*root[ ]*warp[ ]*n' /etc/crontab || echo '@reboot root warp n' >> /etc/crontab - net - + # 优先使用 IPv4 网络 [[ -e /etc/gai.conf ]] && [[ $(grep '^[ ]*precedence[ ]*::ffff:0:0/96[ ]*100' /etc/gai.conf) ]] || echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf