fix(ruleset): reject plain lists in ruleset references (#58) and route components to Dushnilin repos

This commit is contained in:
Dushnilin
2026-09-16 15:16:56 +03:00
parent a23c2a2a55
commit d28af621c9
9 changed files with 101 additions and 26 deletions
@@ -21975,9 +21975,9 @@ var COMPONENT_REPO_URLS = {
zapret: "https://github.com/remittor/zapret-openwrt",
zapret2: "https://github.com/Dushnilin/zapret2-openwrt",
byedpi: "https://github.com/DPITrickster/ByeDPI-OpenWrt",
wdtt: "https://github.com/SpaceNeuroX/qwdtt-openwrt",
olcrtc: "https://github.com/alekvol/openwrt-olcrtc",
fptn: "https://github.com/fptn-project/fptn",
wdtt: "https://github.com/Dushnilin/qwdtt-openwrt",
olcrtc: "https://github.com/Dushnilin/openwrt-olcrtc",
fptn: "https://github.com/Dushnilin/fptn",
tailscale: "https://openwrt.org/packages/pkgdata/tailscale",
direct_bypass: "",
torrserver_direct: ""
@@ -7648,6 +7648,12 @@ function validateFileReference(value, extensions, errorMessage, options = {}) {
}
function validateCustomRulesetReference(value) {
if (hasAllowedReferenceExtension(value, [".lst", ".txt"])) {
return _(
'Plain .lst / .txt lists belong in "Domain and IP lists", not "Rule sets"',
);
}
return validateFileReference(
value,
[".srs", ".json"],