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