mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 18:41:51 +00:00
Fix if ifname not defined
This commit is contained in:
parent
d5aa21766f
commit
a95c150d8f
1 changed files with 1 additions and 1 deletions
|
@ -649,7 +649,7 @@ function interfaces_status()
|
|||
multipath_available = multipath_available,
|
||||
}
|
||||
|
||||
if ifname:match("^tun.*") then
|
||||
if ifname ~= nil and ifname:match("^tun.*") then
|
||||
table.insert(mArray.tunnels, data);
|
||||
else
|
||||
table.insert(mArray.wans, data);
|
||||
|
|
Loading…
Reference in a new issue