summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2018-05-28 11:01:51 +0800
committerYousong Zhou <yszhou4tech@gmail.com>2018-05-28 11:13:15 +0800
commit402ad57e550140d28697b5701dc48b6b9c714c2d (patch)
tree0dc68cd86a3f5ab2977b5d691ec294b897bceb1d /applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua
parent6f630b5e66ffe73a294368748d5dc8068e043e0b (diff)
shadowsocks-libev: fix enumerating server and ss_redir sections
The issue existed since the first revision of the rewrite and was exposed by commit 4024d4f (luci-base: switch to ubus uci operations) A quick scan of the current repo indicates that these are the only sites of wrong call pattern Fixes openwrt/packages#6113 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua')
-rw-r--r--applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua b/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua
index af1a75b6f2..5fc20c52bc 100644
--- a/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua
+++ b/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua
@@ -23,7 +23,7 @@ function values_actions(o)
end
function values_redir(o, xmode)
- o.map.uci.foreach("shadowsocks-libev", "ss_redir", function(sdata)
+ o.map.uci:foreach("shadowsocks-libev", "ss_redir", function(sdata)
local disabled = ucival_to_bool(sdata["disabled"])
local sname = sdata[".name"]
local mode = sdata["mode"] or "tcp_only"
@@ -37,7 +37,7 @@ function values_redir(o, xmode)
end
function values_serverlist(o)
- o.map.uci.foreach("shadowsocks-libev", "server", function(sdata)
+ o.map.uci:foreach("shadowsocks-libev", "server", function(sdata)
local sname = sdata[".name"]
local server = sdata["server"]
local server_port = sdata["server_port"]