mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 19:30:11 +00:00
nixos/tor: allow only valid names in the Nickname option
(cherry picked from commit 88b69de507)
This commit is contained in:
committed by
github-actions[bot]
parent
75e04ecd08
commit
60ca8e0a4c
@@ -1055,7 +1055,11 @@ in
|
||||
options.MaxClientCircuitsPending = optionInt "MaxClientCircuitsPending";
|
||||
options.NATDPort = optionIsolablePorts "NATDPort";
|
||||
options.NewCircuitPeriod = optionInt "NewCircuitPeriod";
|
||||
options.Nickname = optionString "Nickname";
|
||||
options.Nickname = lib.mkOption {
|
||||
type = with lib.types; nullOr (strMatching "^[a-zA-Z0-9]{1,19}$");
|
||||
default = null;
|
||||
description = (descriptionGeneric "Nickname");
|
||||
};
|
||||
options.ORPort = optionORPort "ORPort";
|
||||
options.OfflineMasterKey = optionBool "OfflineMasterKey";
|
||||
options.OptimisticData = optionBool "OptimisticData"; # default is null and like "auto"
|
||||
|
||||
Reference in New Issue
Block a user