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

juga at torproject.org juga at torproject.org
Fri Feb 19 17:53:51 UTC 2021


commit 3a4a47d302d5b23b9452a073c1b75f3daaf88608
Author: juga0 <juga at riseup.net>
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)





More information about the tor-commits mailing list