NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.59k stars 13.74k forks source link

services.tor.settings.RejectPlaintextPorts broken with multiple ports #146691

Open woffs opened 2 years ago

woffs commented 2 years ago

Issue description

RejectPlaintextPorts generates each port on an extra line in config, but manual says it should be one line:

RejectPlaintextPorts port,port,...

Steps to reproduce

services.tor.settings.RejectPlaintextPorts = [ 23 80 ];

leads to two lines in torrc

RejectPlaintextPorts 23
RejectPlaintextPorts 80

and the warning

[warn] Option 'RejectPlaintextPorts' used more than once; all but the last value will be ignored.

resulting in Port 23 not being rejected

Technical details

ehmry commented 1 year ago

The typed configuration for services.tor.settings should just go away.