summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2018-04-09 17:33:21 +0300
committerGitHub <noreply@github.com>2018-04-09 17:33:21 +0300
commitedd1fab34eaa98be624bbba17f60a8ae63744a98 (patch)
treec4b6211b37db19292c4e4bbbcc5543bcb73f4fcf /applications/luci-app-mwan3
parent28d10632a19dd50a3d0b7f7eb670d38fa1fa419c (diff)
parentf7f5395f1c6c1cb3913ca12b1efd9bbdf6201f15 (diff)
Merge pull request #1741 from dibdot/mwan-fix
luci-app-mwan3: bugfix
Diffstat (limited to 'applications/luci-app-mwan3')
-rw-r--r--applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua
index 3a896d3bcf..a439502671 100644
--- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua
+++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua
@@ -171,7 +171,7 @@ metric = mwan_interface:option(DummyValue, "metric", translate("Metric"),
translate("This displays the metric assigned to this interface in /etc/config/network"))
metric.rawhtml = true
function metric.cfgvalue(self, s)
- local uci = uci.cursor(nil, "/var/state")
+ local uci = require "luci.model.uci".cursor(nil, "/var/state")
local metric = uci:get("network", arg[1], "metric")
if metric then
return metric