浏览代码

Merge branch 'master' of https://github.com/XrayR-project/XrayR-release

pocketW 3 年之前
父节点
当前提交
7b3ffc9ea2
共有 2 个文件被更改,包括 8 次插入4 次删除
  1. 1 1
      config/config.yml
  2. 7 3
      install.sh

+ 1 - 1
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"

+ 7 - 3
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