luci-app-ssr-plus: fix define uci (fix project-openwrt/openwrt-latest#15)

This commit is contained in:
CN_SZTL 2020-03-25 23:40:41 +08:00
parent 95833b0dac
commit 895f2a3789
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -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', {})