]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
tor.cgi: Fixes deprecated tor option 'ExitNode' to 'ExitNodes'
authorErik Kapfer <erik.kapfer@ipfire.org>
Thu, 30 Nov 2023 07:56:04 +0000 (08:56 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Mon, 4 Dec 2023 22:32:43 +0000 (22:32 +0000)
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

index 75fdf0d5db47434a7bd13bf41702022adf3e4376..9aa2bc95a1985e2f0e3b23311f0e34a26a10a2ec 100644 (file)
@@ -790,7 +790,7 @@ sub BuildConfiguration() {
 
                        my @nodes = split(",", $settings{'TOR_USE_EXIT_NODES'});
                        foreach (@nodes) {
-                               print FILE "ExitNode $_\n";
+                               print FILE "ExitNodes $_\n";
                        }
                }