fix: per-site config was not working properly

This commit is contained in:
FUFSoB committed 2026-07-02 19:18:55 +05:00
1 parent 459a864478
commit 57a3426c85
7 files changed
+123 -42

No files matched your search

+14 -6
View File
@@ -278,9 +278,10 @@ let
];
zapretDefaultDomainType = types.enum [
"youtube"
"general"
"google"
"discord"
"other"
"youtube"
"instagram"
"soundcloud"
"twitter"
@@ -321,15 +322,22 @@ let
Built-in domain groups copied from zapret-discord-youtube hostlists.
These are expanded and combined with domains.
"youtube" uses the upstream Google/YouTube list. "discord" uses
Discord-related domains from the upstream general list. "other" uses
the non-Discord domains from the upstream general list.
Each value maps directly to the same-named upstream file:
"general" uses list-general.txt, "google" uses list-google.txt,
and the remaining values use their corresponding list-<name>.txt.
"discord" is an alias for "general"; "youtube" is an alias for
"google".
When "general" or "discord" is used together with configName, the
module also clones the selected config's Discord UDP voice rule
(--filter-l7=discord,stun).
When preset is unset, use one defaultDomains entry per rule so the
module can infer a single rule family. Split groups into separate
rules when they need different strategies.
'';
example = [ "youtube" ];
example = [ "google" ];
};
ips = mkOption {
+5 -4
View File
@@ -152,10 +152,11 @@ in
zapret family from the active config, clone it from another configName,
add custom NFQWS rule fragments, or combine these pieces.
defaultDomains provides built-in zapret-discord-youtube domain groups
such as "youtube" and "discord"; defaultIps provides upstream IP/CIDR
groups such as "all". configName is a higher-level
alternative to nfqwsArgs and cannot be used together with nfqwsArgs.
defaultDomains selects same-named upstream zapret-discord-youtube
hostlists such as "general" and "google", with the aliases "discord"
and "youtube" for readability. defaultIps provides upstream IP/CIDR
groups such as "all". configName is a higher-level alternative to
nfqwsArgs and cannot be used together with nfqwsArgs.
'';
example = [
{