1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 10:31:51 +00:00

Fix if interface not set

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-11-19 18:35:59 +01:00
parent 19e9542fec
commit c4ad2f6182

View file

@ -557,7 +557,11 @@ end
function get_device(interface)
local dump = require("luci.util").ubus("network.interface.%s" % interface, "status", {})
return dump['l3_device']
if dump then
return dump['l3_device']
else
return ""
end
end
function get_gateway(interface)