summary refs log tree commit diff
path: root/nixos/doc/manual/from_md/release-notes
diff options
context:
space:
mode:
authorLuflosi <luflosi@luflosi.de>2022-03-05 13:25:02 +0100
committerLuflosi <luflosi@luflosi.de>2022-03-15 23:39:02 +0100
commit1b34039b5f1c3bfa6a9b1f7bd78ab3adecbe2a75 (patch)
tree8b699531374acfb601b58728d23e94089e5bc023 /nixos/doc/manual/from_md/release-notes
parent70601aaadc4b6ee2b266033044d0e0a37117b9e5 (diff)
downloadnixpkgs-1b34039b5f1c3bfa6a9b1f7bd78ab3adecbe2a75.tar
nixpkgs-1b34039b5f1c3bfa6a9b1f7bd78ab3adecbe2a75.tar.gz
nixpkgs-1b34039b5f1c3bfa6a9b1f7bd78ab3adecbe2a75.tar.bz2
nixpkgs-1b34039b5f1c3bfa6a9b1f7bd78ab3adecbe2a75.tar.lz
nixpkgs-1b34039b5f1c3bfa6a9b1f7bd78ab3adecbe2a75.tar.xz
nixpkgs-1b34039b5f1c3bfa6a9b1f7bd78ab3adecbe2a75.tar.zst
nixpkgs-1b34039b5f1c3bfa6a9b1f7bd78ab3adecbe2a75.zip
nixos/tor: fix services.tor.client.enable = false not working
If `services.tor.client.enable` is set to false (the default), the `SOCKSPort` option is not added to the torrc file but since Tor defaults to listening on port 9050 when the option is not specified, the tor client is not actually disabled. To fix this, simply set `SOCKSPort` to 0, which disables the client.
Use `mkForce` to prevent potentially two different `SOCKSPort` options in the torrc file, with one of them being 0 as this would cause Tor to fail to start. When `services.tor.client.enable` is set to false, this should always be disabled.
Diffstat (limited to 'nixos/doc/manual/from_md/release-notes')
-rw-r--r--nixos/doc/manual/from_md/release-notes/rl-2205.section.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml
index 396de8cd77c..ae9067c923e 100644
--- a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml
+++ b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml
@@ -794,6 +794,16 @@
       </listitem>
       <listitem>
         <para>
+          The Tor SOCKS proxy is now actually disabled if
+          <literal>services.tor.client.enable</literal> is set to
+          <literal>false</literal> (the default). If you are using this
+          functionality but didn’t change the setting or set it to
+          <literal>false</literal>, you now need to set it to
+          <literal>true</literal>.
+        </para>
+      </listitem>
+      <listitem>
+        <para>
           The terraform 0.12 compatibility has been removed and the
           <literal>terraform.withPlugins</literal> and
           <literal>terraform-providers.mkProvider</literal>