From: Peter Müller Date: Thu, 10 Nov 2022 19:31:33 +0000 (+0000) Subject: Tor: Disable SOCKS port if unused X-Git-Tag: v2.27-core172~132 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8a0be2033f8d932b1687df1b6515bfb72230acf2;p=ipfire-2.x.git Tor: Disable SOCKS port if unused Fixes: #11780 Signed-off-by: Peter Müller --- diff --git a/html/cgi-bin/tor.cgi b/html/cgi-bin/tor.cgi index 539a743438..96be35102b 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 # +# Copyright (C) 2007-2022 IPFire Team # # # # 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.