From 895f2a37890e5d2b103ab3751652bb3e82b4f912 Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Wed, 25 Mar 2020 23:40:41 +0800 Subject: [PATCH] luci-app-ssr-plus: fix define uci (fix project-openwrt/openwrt-latest#15) --- .../luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/lean/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua b/package/lean/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua index 30d781d8a0..09ee3238f7 100644 --- a/package/lean/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua +++ b/package/lean/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua @@ -19,7 +19,7 @@ local cache = {} local nodeResult = setmetatable({}, { __index = cache }) -- update result local name = 'shadowsocksr' local uciType = 'servers' -local ucic = uci.cursor() +local ucic = luci.model.uci.cursor() local proxy = ucic:get_first(name, 'server_subscribe', 'proxy', '0') local switch = ucic:get_first(name, 'server_subscribe', 'switch', '1') local subscribe_url = ucic:get_first(name, 'server_subscribe', 'subscribe_url', {})