feat(rulesets): add Twitch preset and resilient CDN fallback

This commit is contained in:
Dushnilin
2026-09-14 14:46:28 +03:00
parent 4af55ebed3
commit 24c11bbca8
8 changed files with 47 additions and 9 deletions
@@ -10,6 +10,7 @@ const SRS_MAIN_URL = "https://github.com/itdoginfo/allow-domains/releases/latest
const SRS_ADS_HAGEZI_PRO_URL = "https://github.com/zxc-rv/ad-filter/releases/latest/download/adlist.srs";
const SRS_SUPERCELL_URL = "https://raw.githubusercontent.com/ushan0v/sing-box-supercell-ruleset/main/supercell.srs";
const SRS_GITHUB_URL = "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/github.srs";
const SRS_TWITCH_URL = "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/twitch.srs";
const SRS_GEOIP_RU_URL = "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/ru.srs";
const SRS_GEOSITE_RU_URL = "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/category-ru.srs";
const SRS_GEOIP_US_URL = "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/us.srs";
@@ -43,6 +44,7 @@ const COMMUNITY_SERVICES = {
ads_hagezi_pro: true,
supercell: true,
github: true,
twitch: true,
geoip_ru: true,
geosite_ru: true,
geoip_us: true,
@@ -68,6 +70,8 @@ function community_url(name) {
return SRS_SUPERCELL_URL;
if (name == "github")
return SRS_GITHUB_URL;
if (name == "twitch")
return SRS_TWITCH_URL;
if (name == "geosite_ru")
return SRS_GEOSITE_RU_URL;