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

[tor-commits] [bridgedb/master] Change Filter.filterBridgesByIPv[46]() to use bridge.address.



commit f49a243bb2208ec371b01341d8ad1ecc1669ad48
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Wed Dec 24 08:40:37 2014 +0000

    Change Filter.filterBridgesByIPv[46]() to use bridge.address.
    
    Using bridge.ip is deprecated.
---
 lib/bridgedb/Filters.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bridgedb/Filters.py b/lib/bridgedb/Filters.py
index ab8b74a..f22fcc7 100644
--- a/lib/bridgedb/Filters.py
+++ b/lib/bridgedb/Filters.py
@@ -51,7 +51,7 @@ def filterBridgesByRules(rules):
 
 def filterBridgesByIP4(bridge):
     try:
-        if IPv4Address(bridge.ip): return True
+        if IPv4Address(bridge.address): return True
     except ValueError:
         pass
 
@@ -63,7 +63,7 @@ setattr(filterBridgesByIP4, "description", "ip=4")
 
 def filterBridgesByIP6(bridge):
     try:
-        if IPv6Address(bridge.ip): return True
+        if IPv6Address(bridge.address): return True
     except ValueError:
         pass
 



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