summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3/luasrc
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2018-02-27 15:00:50 +0100
committerFlorian Eckert <fe@dev.tdt.de>2018-03-01 10:47:38 +0100
commit3c86c6562ed870bb476349857ca59e4bb14947e2 (patch)
tree6f602f0e55fd59a8201c395ded7b19f0dfabd6ae /applications/luci-app-mwan3/luasrc
parent1d9cc1a9e1370be588c5ebc95e865a648fec4dc2 (diff)
luci-app-mwan3: fix stack trace if no tacking_ip is set on interface add
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-mwan3/luasrc')
-rw-r--r--applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua2
1 files changed, 1 insertions, 1 deletions
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 920dc6afb..4b1a070d1 100644
--- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua
+++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua
@@ -93,7 +93,7 @@ function configCheck()
local trackingNumber = uci:get("mwan3", iface, "track_ip")
overview[iface]["tracking"] = 0
- if #trackingNumber > 0 then
+ if trackingNumber and #trackingNumber > 0 then
overview[iface]["tracking"] = #trackingNumber
overview[iface]["reliability"] = false
local reliabilityNumber = tonumber(uci:get("mwan3", iface, "reliability"))