fix: hardening

This commit is contained in:
FUFSoB committed 2026-10-05 22:44:09 +05:00
1 parent 017a947a18
commit a435942b4f
168 files changed
+9166 -1644

No files matched your search

+4 -3
View File
@@ -38,7 +38,7 @@ in
};
blobs = mkOption {
type = types.attrsOf types.str;
type = types.attrsOf (types.strMatching "[^[:space:]]+");
default = { };
description = "Extra fake payloads by name (blob=<name>): a file in zapret2's files/fake, or an absolute path.";
example = {
@@ -47,14 +47,15 @@ in
};
domains = mkOption {
type = types.listOf types.str;
# Each becomes one nfqws2 argument: whitespace would make more.
type = types.listOf (types.strMatching "[^[:space:]]+");
default = [ ];
description = "Domains always treated as blocked. At runtime: `proxy-ctl zapret auto add`.";
example = [ "rutracker.org" ];
};
excludeDomains = mkOption {
type = types.listOf types.str;
type = types.listOf (types.strMatching "[^[:space:]]+");
default = [ ];
description = "Domains never touched or learned. At runtime: `proxy-ctl zapret auto exclude`.";
example = [ "bank.example.com" ];