fix(ruleset): reject plain lists in ruleset references (#58) and route components to Dushnilin repos
This commit is contained in:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user