From f08f66c14ea9e1a09d7b0eb404bfcbffe6818650 Mon Sep 17 00:00:00 2001 From: suyuan <175338101@qq.com> Date: Fri, 26 Mar 2021 16:24:53 +0800 Subject: [PATCH] fx status --- luci-app-status/luasrc/controller/status.lua | 2 +- luci-app-status/luasrc/view/status/server.htm | 2 +- .../luasrc/view/status/wanstatus.htm | 75 ++++++++++++++----- 3 files changed, 60 insertions(+), 19 deletions(-) diff --git a/luci-app-status/luasrc/controller/status.lua b/luci-app-status/luasrc/controller/status.lua index 02cdbbebc..b1f3dab0a 100644 --- a/luci-app-status/luasrc/controller/status.lua +++ b/luci-app-status/luasrc/controller/status.lua @@ -43,7 +43,7 @@ function server_add() serversnb = serversnb + 1 end ucic:set("openmptcprouter",server,"disabled",openmptcprouter_vps_disabled) - ucic:set("openmptcprouter",server,"ip",server_ip) + ucic:set_list("openmptcprouter",server,"ip",server_ip) ucic:set("openmptcprouter",server,"port","65500") ucic:save("openmptcprouter") end diff --git a/luci-app-status/luasrc/view/status/server.htm b/luci-app-status/luasrc/view/status/server.htm index b7b367fce..a00832895 100644 --- a/luci-app-status/luasrc/view/status/server.htm +++ b/luci-app-status/luasrc/view/status/server.htm @@ -52,7 +52,7 @@
- " data-optional="false"> + " data-optional="false">
<%:Server IP%>
diff --git a/luci-app-status/luasrc/view/status/wanstatus.htm b/luci-app-status/luasrc/view/status/wanstatus.htm index b4f04ece3..bfb248074 100644 --- a/luci-app-status/luasrc/view/status/wanstatus.htm +++ b/luci-app-status/luasrc/view/status/wanstatus.htm @@ -59,7 +59,7 @@ <%+header%> <% local ucic = luci.model.uci.cursor() -local menuentry = ucic:get("openmptcprouter","settings","menu") or "status" +local menuentry = "status" local statuslogo = ucic:get("openmptcprouter","settings","statuslogo") or "openmptcprouter.png" %> @@ -897,21 +897,23 @@ local statuslogo = ucic:get("openmptcprouter","settings","statuslogo") or "openm