From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH 3/4] Tor: Do not try to support IPv6 for Directory and OR ports Date: Sat, 25 Sep 2021 09:08:42 +0200 Message-ID: <37a388ab-a01e-6628-f872-d5db530d7688@ipfire.org> In-Reply-To: <37079e43-a5af-db04-086e-750f04151b75@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1875247580769610197==" List-Id: --===============1875247580769610197== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit We currently don't have IPv6 in vanilla IPFire 2.x installations, hence there is no sense in letting Tor finding out IPv6 connectivity. Signed-off-by: Peter Müller --- html/cgi-bin/tor.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/cgi-bin/tor.cgi b/html/cgi-bin/tor.cgi index 2b0d93336..8ecef5d9c 100644 --- a/html/cgi-bin/tor.cgi +++ b/html/cgi-bin/tor.cgi @@ -802,10 +802,10 @@ sub BuildConfiguration() { # Reject access to private networks. print FILE "ExitPolicyRejectPrivate 1\n"; - print FILE "ORPort $settings{'TOR_RELAY_PORT'}\n"; + print FILE "ORPort $settings{'TOR_RELAY_PORT'} IPv4Only\n"; if ($settings{'TOR_RELAY_DIRPORT'} ne '0') { - print FILE "DirPort $settings{'TOR_RELAY_DIRPORT'}\n"; + print FILE "DirPort $settings{'TOR_RELAY_DIRPORT'} IPv4Only\n"; } if ($settings{'TOR_RELAY_ADDRESS'} ne '') { -- 2.26.2 --===============1875247580769610197==--