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

[tor-commits] [sbws/maint-1.1] fix: relaylist: rename is_exit_not_bad_allowing_port



commit 33a5909f57271a67ef0d9d88c1d7799d341d5ece
Author: juga0 <juga@xxxxxxxxxx>
Date:   Tue Feb 2 11:38:12 2021 +0000

    fix: relaylist: rename is_exit_not_bad_allowing_port
    
    see previous commit
---
 sbws/core/scanner.py  | 2 +-
 sbws/lib/relaylist.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sbws/core/scanner.py b/sbws/core/scanner.py
index 312993a..20f1b83 100644
--- a/sbws/core/scanner.py
+++ b/sbws/core/scanner.py
@@ -294,7 +294,7 @@ def measure_relay(args, conf, destinations, cb, rl, relay):
     # exit, then pick a non-exit. Otherwise pick an exit.
     helper = None
     circ_fps = None
-    if relay.is_exit_not_bad_allowing_port(dest.port):
+    if relay.is_exit_not_bad_allowing_port_all_ips(dest.port):
         helper = _pick_ideal_second_hop(
             relay, dest, rl, cb.controller, is_exit=False)
         if helper:
diff --git a/sbws/lib/relaylist.py b/sbws/lib/relaylist.py
index 5eef4aa..86e0d7b 100644
--- a/sbws/lib/relaylist.py
+++ b/sbws/lib/relaylist.py
@@ -219,7 +219,7 @@ class Relay:
             return False
         return False
 
-    def is_exit_not_bad_allowing_port(self, port):
+    def is_exit_not_bad_allowing_port_all_ips(self, port):
         return (Flag.BADEXIT not in self.flags and
                 Flag.EXIT in self.flags and
                 self.can_exit_to_port_all_ips(port))
@@ -455,7 +455,7 @@ class RelayList:
 
     def exits_not_bad_allowing_port(self, port):
         return [r for r in self.exits
-                if r.is_exit_not_bad_allowing_port(port)]
+                if r.is_exit_not_bad_allowing_port_all_ips(port)]
 
     def increment_recent_measurement_attempt(self):
         """



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