diff options
author | Florian Eckert <fe@dev.tdt.de> | 2018-02-27 15:00:50 +0100 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2018-03-01 10:47:38 +0100 |
commit | 3c86c6562ed870bb476349857ca59e4bb14947e2 (patch) | |
tree | 6f602f0e55fd59a8201c395ded7b19f0dfabd6ae | |
parent | 1d9cc1a9e1370be588c5ebc95e865a648fec4dc2 (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>
-rw-r--r-- | applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua | 2 |
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")) |