luci: fix rule update args

This commit is contained in:
xiaorouji 2023-02-09 14:55:23 +08:00 committed by sbwml
parent 1e93848cc9
commit 75a753cc45

View File

@ -340,24 +340,26 @@ local function fetch_geosite()
end end
if arg[2] then if arg[2] then
if arg[2]:find("gfwlist") then string.gsub(arg[2], '[^' .. "," .. ']+', function(w)
gfwlist_update = 1 if w == "gfwlist" then
end gfwlist_update = 1
if arg[2]:find("chnroute") then end
chnroute_update = 1 if w == "chnroute" then
end chnroute_update = 1
if arg[2]:find("chnroute6") then end
chnroute6_update = 1 if w == "chnroute6" then
end chnroute6_update = 1
if arg[2]:find("chnlist") then end
chnlist_update = 1 if w == "chnlist" then
end chnlist_update = 1
if arg[2]:find("geoip") then end
geoip_update = 1 if w == "geoip" then
end geoip_update = 1
if arg[2]:find("geosite") then end
geosite_update = 1 if w == "geosite" then
end geosite_update = 1
end
end)
else else
gfwlist_update = ucic:get_first(name, 'global_rules', "gfwlist_update", 1) gfwlist_update = ucic:get_first(name, 'global_rules', "gfwlist_update", 1)
chnroute_update = ucic:get_first(name, 'global_rules', "chnroute_update", 1) chnroute_update = ucic:get_first(name, 'global_rules', "chnroute_update", 1)