X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-mwan3%2Fluasrc%2Fmodel%2Fcbi%2Fmwan%2Finterface.lua;h=920dc6afb18937aed7c1d6c8d0eeaaf0aa06895a;hp=166f0779102b92bac425bb65f2636d488e06708d;hb=8f5be58a56dee85189eaf5a3ecb3e73b89d8288d;hpb=cf1af792d6ca285fed757fa21904f635bdbfffce 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 166f07791..920dc6afb 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua @@ -1,3 +1,7 @@ +-- Copyright 2014 Aedan Renner +-- Licensed to the public under the GNU General Public License v2. + dsp = require "luci.dispatcher" @@ -77,7 +81,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