mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51: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,
|
multipath_available = multipath_available,
|
||||||
}
|
}
|
||||||
|
|
||||||
if ifname:match("^tun.*") then
|
if ifname ~= nil and ifname:match("^tun.*") then
|
||||||
table.insert(mArray.tunnels, data);
|
table.insert(mArray.tunnels, data);
|
||||||
else
|
else
|
||||||
table.insert(mArray.wans, data);
|
table.insert(mArray.wans, data);
|
||||||
|
|
Loading…
Reference in a new issue