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