This commit is contained in:
pocketW 2022-09-10 22:22:40 +10:00
commit 7b3ffc9ea2
2 changed files with 8 additions and 4 deletions

View File

@ -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"

View File

@ -121,12 +121,16 @@ install_XrayR() {
exit 1
fi
else
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