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...%> +

+