mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 11:01:50 +00:00
Fix error when no data
This commit is contained in:
parent
c92bf3699a
commit
8557bdcaf4
1 changed files with 1 additions and 1 deletions
|
@ -689,7 +689,7 @@ function interfaces_status()
|
|||
local ut = require "luci.util"
|
||||
local mArray = ut.ubus("openmptcprouter", "status", {}) or {_=0}
|
||||
|
||||
if mArray ~= nil then
|
||||
if mArray ~= nil and mArray.openmptcprouter ~= nil then
|
||||
mArray.openmptcprouter["remote_addr"] = luci.http.getenv("REMOTE_ADDR") or ""
|
||||
mArray.openmptcprouter["remote_from_lease"] = false
|
||||
local leases=tools.dhcp_leases()
|
||||
|
|
Loading…
Reference in a new issue