From 562a3e5b73c16dd5bdcf381aa96606b5ce2c01c4 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 19 Jan 2018 09:49:46 +0100 Subject: luci-app-mwan3: fix assert if route could not select by ubus Signed-off-by: Florian Eckert --- applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-app-mwan3/luasrc/model') diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua index 166f077910..f680840fcd 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua @@ -77,7 +77,7 @@ function configCheck() local dump = require("luci.util").ubus("network.interface.%s" % iface, "status", {}) overview[iface]["default_route"] = false - if dump then + if dump and dump.route then local _, route for _, route in ipairs(dump.route) do if dump.route[_].target == "0.0.0.0" then -- cgit v1.2.3