OSDN Git Service

luci-app-v2ray-server: switch to sagernet core
authorTianling Shen <cnsztl@immortalwrt.org>
Thu, 9 Jun 2022 10:13:12 +0000 (18:13 +0800)
committerTianling Shen <cnsztl@immortalwrt.org>
Thu, 9 Jun 2022 10:13:12 +0000 (18:13 +0800)
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
applications/luci-app-v2ray-server/Makefile
applications/luci-app-v2ray-server/luasrc/model/cbi/v2ray_server/api/v2ray.lua

index ce603c9..90dd3bc 100644 (file)
@@ -6,7 +6,7 @@
 include $(TOPDIR)/rules.mk
 
 LUCI_TITLE:=LuCI support for V2ray Server
-LUCI_DEPENDS:=+xray-core
+LUCI_DEPENDS:=+sagernet-core
 LUCI_PKGARCH:=all
 PKG_VERSION:=1.1
 PKG_RELEASE:=5
index e1953ca..8c4acbd 100644 (file)
@@ -177,7 +177,7 @@ function get_v2ray_version()
     if get_v2ray_file_path() and get_v2ray_file_path() ~= "" then
         if fs.access(get_v2ray_file_path() .. "/v2ray") then
             return luci.sys.exec("echo -n `" .. get_v2ray_file_path() ..
-                                     "/v2ray -version | awk '{print $2}' | sed -n 1P" ..
+                                     "/v2ray version | awk '{print $2}' | sed -n 1P" ..
                                      "`")
         end
     end