[1/2] tor.cgi: Fixes deprecated tor option 'ExitNode' to 'ExitNodes'

Message ID 20231130075617.3961868-1-erik.kapfer@ipfire.org
State Staged
Commit a913e1ebdd01dd43b4ea8e0f5975e0a6a73d932a
Headers
Series [1/2] tor.cgi: Fixes deprecated tor option 'ExitNode' to 'ExitNodes' |

Commit Message

Erik Kapfer Nov. 30, 2023, 7:56 a.m. UTC
  If fingerprints in the Exit Node section are in usage, tor.cgi prints the
deprecated option 'ExitNode' into torrc which leads to the following warning
"The abbreviation ‘ExitNode’ is deprecated. Please use ‘ExitNodes’ instead".
Fix has been found and tested in the community for reference please see -->
https://community.ipfire.org/t/the-abbreviation-exitnode-is-deprecated-please-use-exitnodes-instead/10582/10

Signed-off-by: Erik Kapfer <erik.kapfer@ipfire.org>
---
 html/cgi-bin/tor.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/html/cgi-bin/tor.cgi b/html/cgi-bin/tor.cgi
index 75fdf0d5d..9aa2bc95a 100644
--- a/html/cgi-bin/tor.cgi
+++ b/html/cgi-bin/tor.cgi
@@ -790,7 +790,7 @@  sub BuildConfiguration() {
 
 			my @nodes = split(",", $settings{'TOR_USE_EXIT_NODES'});
 			foreach (@nodes) {
-				print FILE "ExitNode $_\n";
+				print FILE "ExitNodes $_\n";
 			}
 		}