mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix partially issue when LAN interfance doesn't exist
This commit is contained in:
parent
007374410e
commit
f1ea9f3db1
1 changed files with 4 additions and 1 deletions
|
@ -767,7 +767,10 @@ function interfaces_status()
|
|||
end)
|
||||
end
|
||||
local net = ntm:get_network("lan")
|
||||
local ipaddr = net:ipaddr() or ""
|
||||
local ipaddr = ""
|
||||
if net then
|
||||
ipaddr = net:ipaddr()
|
||||
end
|
||||
mArray.openmptcprouter["local_addr"] = ipaddr
|
||||
--mArray.openmptcprouter["local_addr"] = uci:get("network", "lan", "ipaddr")
|
||||
mArray.openmptcprouter["hostname"] = "OpenMPTCProuter"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue