Add warning.

pull/36/head
IceCodeNew 2020-08-08 11:20:15 +08:00
parent d6808a3ddb
commit 83105f93d3
1 changed files with 1 additions and 0 deletions

View File

@ -247,6 +247,7 @@ get_version() {
# Get V2Ray release version number
TMP_FILE="$(mktemp)"
install_software curl
# DO NOT QUOTE THESE `${PROXY}` VARIABLES!
if ! curl ${PROXY} -s -o "$TMP_FILE" 'https://api.github.com/repos/v2fly/v2ray-core/releases/latest'; then
rm "$TMP_FILE"
echo 'error: Failed to get release list, please check your network.'