Release 1.2.43 - Pre-download and cache all preset rulesets & databases
This commit is contained in:
@@ -654,6 +654,10 @@ bypass
|
||||
192.168.1.10/32
|
||||
[rule.text_rule.excluded_ips]
|
||||
|
||||
[rule.text_rule.excluded_protocol]
|
||||
|
||||
[rule.text_rule.protocol]
|
||||
|
||||
[rule.text_rule.community_subnet_lists]
|
||||
meta telegram discord
|
||||
[rule.text_rule.remote_subnet_lists]
|
||||
@@ -676,6 +680,10 @@ proxy
|
||||
|
||||
[rule.default_enabled.excluded_ips]
|
||||
|
||||
[rule.default_enabled.excluded_protocol]
|
||||
|
||||
[rule.default_enabled.protocol]
|
||||
|
||||
[rule.default_enabled.community_subnet_lists]
|
||||
cloudflare roblox
|
||||
[rule.default_enabled.remote_subnet_lists]
|
||||
@@ -728,6 +736,10 @@ bypass
|
||||
192.168.1.10/32
|
||||
[rule.enabled.excluded_ips]
|
||||
|
||||
[rule.enabled.excluded_protocol]
|
||||
|
||||
[rule.enabled.protocol]
|
||||
|
||||
[rule.enabled.community_subnet_lists]
|
||||
meta telegram discord
|
||||
[rule.enabled.remote_subnet_lists]
|
||||
|
||||
@@ -663,6 +663,10 @@ ads
|
||||
198.51.100.2
|
||||
[rule.proxy1.excluded_ips]
|
||||
|
||||
[rule.proxy1.excluded_protocol]
|
||||
|
||||
[rule.proxy1.protocol]
|
||||
|
||||
[rule.proxy1.community_lists]
|
||||
telegram
|
||||
[rule.proxy1.rule_set]
|
||||
@@ -741,6 +745,10 @@ disabled
|
||||
|
||||
[rule.out1.excluded_ips]
|
||||
|
||||
[rule.out1.excluded_protocol]
|
||||
|
||||
[rule.out1.protocol]
|
||||
|
||||
[rule.out1.community_lists]
|
||||
|
||||
[rule.out1.rule_set]
|
||||
@@ -775,6 +783,10 @@ byedpi
|
||||
|
||||
[rule.bye1.excluded_ips]
|
||||
|
||||
[rule.bye1.excluded_protocol]
|
||||
|
||||
[rule.bye1.protocol]
|
||||
|
||||
[rule.bye1.community_lists]
|
||||
|
||||
[rule.bye1.rule_set]
|
||||
@@ -853,6 +865,10 @@ disabled
|
||||
|
||||
[rule.vpn1.excluded_ips]
|
||||
|
||||
[rule.vpn1.excluded_protocol]
|
||||
|
||||
[rule.vpn1.protocol]
|
||||
|
||||
[rule.vpn1.community_lists]
|
||||
|
||||
[rule.vpn1.rule_set]
|
||||
|
||||
@@ -163,6 +163,21 @@ assert_eq $'list\t*/30 * * * * /usr/bin/tachyon list_update_if_due # list\nsubsc
|
||||
grep -Fq 'fs.writefile(tmp, as_string(text)) == null' "$UPDATES_UC" ||
|
||||
fail "empty crontab writes must not be treated as fs.writefile failure"
|
||||
|
||||
cat >"$WORK_DIR/cron-plan-all-presets.json" <<'JSON'
|
||||
{
|
||||
"settings": {
|
||||
"list_update_enabled": "1",
|
||||
"update_interval": "1h",
|
||||
"download_all_presets": "1"
|
||||
},
|
||||
"section": []
|
||||
}
|
||||
JSON
|
||||
|
||||
assert_eq $'list\t0 * * * * /usr/bin/tachyon list_update_if_due # list' \
|
||||
"$(updates_ucode cron-refresh-plan-fixture "$WORK_DIR/cron-plan-all-presets.json" /usr/bin/tachyon '# list' '# sub' '# comp')" \
|
||||
"cron refresh plan with download_all_presets"
|
||||
|
||||
cat >"$WORK_DIR/cron-plan-list-disabled.json" <<'JSON'
|
||||
{
|
||||
"settings": {
|
||||
|
||||
Reference in New Issue
Block a user