[2/2] Tor: Do not attempt to establish connections via IPv6

Message ID 20230914174512.568996-2-peter.mueller@ipfire.org
State Staged
Commit 13b04e6998a4be3ed0c54221b8918b967f0e5395
Headers
Series [1/2] Tor: Update to 0.4.8.5 |

Commit Message

Peter Müller Sept. 14, 2023, 5:45 p.m. UTC
  To quote from the changelog of Tor 0.4.8.4:

  o Minor feature (client, IPv6):
    - Make client able to pick IPv6 relays by default now meaning
      ClientUseIPv6 option now defaults to 1. Closes ticket 40785.

In order to avoid any malfunctions on IPFire installations,
set this option to "0" explicitly.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
---
 html/cgi-bin/tor.cgi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/html/cgi-bin/tor.cgi b/html/cgi-bin/tor.cgi
index 96be35102..75fdf0d5d 100644
--- a/html/cgi-bin/tor.cgi
+++ b/html/cgi-bin/tor.cgi
@@ -2,7 +2,7 @@ 
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+# Copyright (C) 2007-2023  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -732,6 +732,7 @@  sub BuildConfiguration() {
 	# Global settings.
 	print FILE "Sandbox 1\n";
 	print FILE "HardwareAccel 1\n";
+	print FILE "ClientUseIPv6 0\n";
 	print FILE "ControlPort $TOR_CONTROL_PORT\n";
 
 	if ($settings{'TOR_ENABLED'} eq 'on') {