]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - html/cgi-bin/tor.cgi
Tor: Do not try to support IPv6 for Directory and OR ports
[ipfire-2.x.git] / html / cgi-bin / tor.cgi
index 2b0d93336488a5226eebeced0f93e1e738dd8272..8ecef5d9c8570f0a2e91806e79810a1b031c5d45 100644 (file)
@@ -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 '') {