From e4087ab694295402668ece4b379f75ec9dad8dfc Mon Sep 17 00:00:00 2001 From: Windy_CI Date: Sun, 1 Sep 2024 13:16:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=8A=B6=E6=80=81=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E9=83=A8=E5=88=86=E7=9A=84frpc=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- luci-app-frpc/luasrc/controller/frpc.lua | 1 + luci-app-frpc/luasrc/view/frp/frp_status.htm | 22 --------------- .../luasrc/view/frpc/frpc_status.htm | 27 +++++++++++++++++++ 3 files changed, 28 insertions(+), 22 deletions(-) delete mode 100644 luci-app-frpc/luasrc/view/frp/frp_status.htm create mode 100644 luci-app-frpc/luasrc/view/frpc/frpc_status.htm diff --git a/luci-app-frpc/luasrc/controller/frpc.lua b/luci-app-frpc/luasrc/controller/frpc.lua index 5e0050c..7c7ad06 100644 --- a/luci-app-frpc/luasrc/controller/frpc.lua +++ b/luci-app-frpc/luasrc/controller/frpc.lua @@ -13,6 +13,7 @@ end function act_status() local e = {} e.running = luci.sys.call("pidof frpc > /dev/null") == 0 + e.bin_version = luci.sys.exec("frpc -v") luci.http.prepare_content("application/json") luci.http.write_json(e) end diff --git a/luci-app-frpc/luasrc/view/frp/frp_status.htm b/luci-app-frpc/luasrc/view/frp/frp_status.htm deleted file mode 100644 index 96c8734..0000000 --- a/luci-app-frpc/luasrc/view/frp/frp_status.htm +++ /dev/null @@ -1,22 +0,0 @@ - - -
-

- <%:Collecting data...%> -

-
diff --git a/luci-app-frpc/luasrc/view/frpc/frpc_status.htm b/luci-app-frpc/luasrc/view/frpc/frpc_status.htm new file mode 100644 index 0000000..53ab856 --- /dev/null +++ b/luci-app-frpc/luasrc/view/frpc/frpc_status.htm @@ -0,0 +1,27 @@ + + +
+

+ <%:Collecting data...%> +

+