diff --git a/config/config.yml b/config/config.yml index e8b07c4..cd20719 100644 --- a/config/config.yml +++ b/config/config.yml @@ -14,7 +14,7 @@ ConnetionConfig: BufferSize: 64 # The internal cache size of each connection, kB Nodes: - - PanelType: "SSpanel" # Panel type: SSpanel, V2board, PMpanel, , Proxypanel + PanelType: "SSpanel" # Panel type: SSpanel, V2board, PMpanel, Proxypanel, V2RaySocks ApiConfig: ApiHost: "http://127.0.0.1:667" ApiKey: "123" diff --git a/install.sh b/install.sh index 3564857..2b4d613 100644 --- a/install.sh +++ b/install.sh @@ -121,12 +121,16 @@ install_XrayR() { exit 1 fi else - last_version=$1 + if [[ $1 == v* ]]; then + last_version=$1 + else + last_version="v"$1 + fi url="https://github.com/XrayR-project/XrayR/releases/download/${last_version}/XrayR-linux-${arch}.zip" - echo -e "开始安装 XrayR v$1" + echo -e "开始安装 XrayR ${last_version}" wget -q -N --no-check-certificate -O /usr/local/XrayR/XrayR-linux.zip ${url} if [[ $? -ne 0 ]]; then - echo -e "${red}下载 XrayR v$1 失败,请确保此版本存在${plain}" + echo -e "${red}下载 XrayR ${last_version} 失败,请确保此版本存在${plain}" exit 1 fi fi