1
0
Fork 0
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:
Ycarus 2018-07-20 13:05:21 +02:00
parent d5aa21766f
commit a95c150d8f

View file

@ -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);