[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [sbws/maint-1.1] fix: relaylist: Comment on IPv6 exit policy



commit 3a4a47d302d5b23b9452a073c1b75f3daaf88608
Author: juga0 <juga@xxxxxxxxxx>
Date:   Sun Dec 13 13:12:54 2020 +0000

    fix: relaylist: Comment on IPv6 exit policy
    
    that could be also checked, increasing the chances that the exit can
    exit to our Web servers.
    But if it could not, then we need to retry to measure it as 1st hop.
---
 sbws/lib/relaylist.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sbws/lib/relaylist.py b/sbws/lib/relaylist.py
index dfd8b76..8a07ce7 100644
--- a/sbws/lib/relaylist.py
+++ b/sbws/lib/relaylist.py
@@ -205,6 +205,11 @@ class Relay:
                 # and ips and that port. See #40006.
                 # Using `strip_private` to ignore reject rules to private
                 # networks.
+                # We could increase the chances that the exit can exit
+                # checking IPv6 with:
+                # ``or self.exit_policy_v6.can_exit_to(port=443, strict=True)``
+                # But if it can still not exit to our Web server, then we
+                # should retry to measure it as entry.
                 return (
                     self.exit_policy.strip_private()
                     .can_exit_to(port=port, strict=True)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits