public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] Tor: Disable SOCKS port if unused
@ 2022-11-10 19:31 Peter Müller
  0 siblings, 0 replies; only message in thread
From: Peter Müller @ 2022-11-10 19:31 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]

Fixes: #11780
Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org>
---
 html/cgi-bin/tor.cgi | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/html/cgi-bin/tor.cgi b/html/cgi-bin/tor.cgi
index 539a74343..96be35102 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-2021  IPFire Team  <info(a)ipfire.org>                     #
+# Copyright (C) 2007-2022  IPFire Team  <info(a)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        #
@@ -796,7 +796,9 @@ sub BuildConfiguration() {
 		if ($strict_nodes > 0) {
 			print FILE "StrictNodes 1\n";
 		}
-	}
+	 } else {
+		print FILE "SocksPort 0\n";
+	 }
 
 	if ($settings{'TOR_RELAY_ENABLED'} eq 'on') {
 		# Reject access to private networks.
-- 
2.35.3

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-10 19:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-10 19:31 [PATCH] Tor: Disable SOCKS port if unused Peter Müller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox