Update WGCF to V2.2.14 Official Edition

Former-commit-id: 7720f1f3805a9c11eec81183eeb7d6ed730207b2
This commit is contained in:
fscarmen
2022-05-12 10:03:17 +08:00
committed by GitHub
parent 209b61ea26
commit 5d09647573
+1 -1
View File
@@ -254,7 +254,7 @@ install(){
# 判断 wgcf 的最新版本并安装
green "\n ${T[${L}11]}\n "
latest=$(curl -fsSL "https://api.github.com/repos/ViRb3/wgcf/releases/latest" | grep "tag_name" | head -n 1 | cut -d : -f2 | sed 's/[ \"v,]//g')
latest=${latest:-'2.2.13'}
latest=${latest:-'2.2.14'}
[[ ! -e /usr/local/bin/wgcf ]] && curl -o /usr/local/bin/wgcf https://raw.githubusercontents.com/fscarmen/warp/main/wgcf/wgcf_"$latest"_darwin_"$ARCHITECTURE"
# 安装 wireguard-go