Skip to content

Commit

Permalink
luci-app-ssr-plus: servers.lua: Fix when auto update is canceled opti…
Browse files Browse the repository at this point in the history
…on is empty error.
  • Loading branch information
zxlhhyccc authored Dec 10, 2024
1 parent 4af6d72 commit 933ffd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/servers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ o:value("5", translate("Every Friday"))
o:value("6", translate("Every Saturday"))
o:value("0", translate("Every Sunday"))
o.default = "*"
o.rmempty = false
o.rmempty = true
o:depends("auto_update", "1")

o = s:option(ListValue, "auto_update_day_time", translate("Update time (every day)"))
for t = 0, 23 do
o:value(t, t .. ":00")
end
o.default = 2
o.rmempty = false
o.rmempty = true
o:depends("auto_update", "1")

o = s:option(ListValue, "auto_update_min_time", translate("Update Interval (min)"))
for i = 0, 59 do
o:value(i, i .. ":00")
end
o.default = 30
o.rmempty = false
o.rmempty = true
o:depends("auto_update", "1")

o = s:option(DynamicList, "subscribe_url", translate("Subscribe URL"))
Expand Down

0 comments on commit 933ffd3

Please sign in to comment.