From b501c1bccc486f95e52e70d83019dfcb06da2bb8 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: Tue, 14 Mar 2023 09:38:45 +0000 Subject: [PATCH] Update 661.sh --- 661.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/661.sh b/661.sh index 787d878..33fe8ca 100644 --- a/661.sh +++ b/661.sh @@ -130,13 +130,23 @@ checkpt(){ if [[ ! -f '/root/warpip/result.csv' ]]; then cpujg mkdir -p /root/warpip +v4v6 +if [[ -z $v4 ]]; then +wget -qN https://gitlab.com/rwkgyg/CFwarp/raw/main/point/ip6.txt +mv ip6.txt ip.txt +else wget -qN https://gitlab.com/rwkgyg/CFwarp/raw/main/point/ip.txt +fi wget -qN https://gitlab.com/rwkgyg/CFwarp/raw/main/point/$cpu && chmod +x $cpu mv $cpu ip.txt warpip/ cd /root/warpip ./$cpu >/dev/null 2>&1 cd fi + +grep -qoE '\[[:xdigit:]+(:[[:xdigit:]]+)?\]:[0-9]+' /usr/local/bin/warp.conf && echo y || echo n +grep -qoE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+' /usr/local/bin/warp.conf && echo y || echo n + endpoint=`sed -n '2p' /root/warpip/result.csv | awk -F ',' '{print $1}'` sed -i "s/162.159.193.10:1701/$endpoint/g" /usr/local/bin/warp.conf 2>/dev/nul sed -i "s/162.159.193.10:2408/$endpoint/g" /etc/wireguard/wgcf.conf 2>/dev/nul