mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
This commit is contained in:
parent
1bc571dcff
commit
c16bfba182
1 changed files with 2 additions and 1 deletions
|
@ -937,7 +937,8 @@ end
|
|||
|
||||
function interfaces_status()
|
||||
local ut = require "luci.util"
|
||||
local mArray = ut.ubus("openmptcprouter", "status", {}) or {_=0}
|
||||
--local mArray = ut.ubus("openmptcprouter", "status", {}) or {_=0}
|
||||
local mArray = luci.json.decode(ut.trim(sys.exec("/bin/ubus -t 600 -S call openmptcprouter status 2>/dev/null")))
|
||||
|
||||
if mArray ~= nil and mArray.openmptcprouter ~= nil then
|
||||
mArray.openmptcprouter["remote_addr"] = luci.http.getenv("REMOTE_ADDR") or ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue