From d315a13e7ad45c00e81c65e3df104146d195027e Mon Sep 17 00:00:00 2001 From: xzxiaoshan <365384722@qq.com> Date: Mon, 18 Dec 2023 11:23:08 +0800 Subject: [PATCH] =?UTF-8?q?Update=20v2ray.sh=20=E4=BC=98=E5=8C=96wget?= =?UTF-8?q?=E4=B8=BAcurl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在v2ray.sh 中,使用wget下载文件兼容性没有curl好,比如容器使用了 http_proxy 代理时,wget 就很容易会出现问题。 --- v2ray.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2ray.sh b/v2ray.sh index 7892af0..8f0c415 100644 --- a/v2ray.sh +++ b/v2ray.sh @@ -35,8 +35,8 @@ DGST_FILE="v2ray-linux-${ARCH}.zip.dgst" echo "Downloading binary file: ${V2RAY_FILE}" echo "Downloading binary file: ${DGST_FILE}" -wget -O ${PWD}/v2ray.zip https://github.com/v2fly/v2ray-core/releases/download/${TAG}/${V2RAY_FILE} > /dev/null 2>&1 -wget -O ${PWD}/v2ray.zip.dgst https://github.com/v2fly/v2ray-core/releases/download/${TAG}/${DGST_FILE} > /dev/null 2>&1 +curl -L -o ${PWD}/v2ray.zip https://github.com/v2fly/v2ray-core/releases/download/${TAG}/${V2RAY_FILE} > /dev/null 2>&1 +curl -L -o ${PWD}/v2ray.zip.dgst https://github.com/v2fly/v2ray-core/releases/download/${TAG}/${DGST_FILE} > /dev/null 2>&1 if [ $? -ne 0 ]; then echo "Error: Failed to download binary file: ${V2RAY_FILE} ${DGST_FILE}" && exit 1