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

[tor-commits] [nyx/master] Sorting by country referenced non-existant function



commit f514d1ee9687b63ce72953946d2683aeb4e440ea
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Sat Aug 29 14:24:28 2015 -0700

    Sorting by country referenced non-existant function
    
    Calls is_private_address() on connections. This isn't a thing. Pretty clear
    what it's trying to do, though.
---
 nyx/connections/entries.py |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/nyx/connections/entries.py b/nyx/connections/entries.py
index f0b06d3..70ca6ac 100644
--- a/nyx/connections/entries.py
+++ b/nyx/connections/entries.py
@@ -158,10 +158,7 @@ class ConnectionPanelEntry:
     elif attr == SortAttr.UPTIME:
       return self._start_time
     elif attr == SortAttr.COUNTRY:
-      if connection_line.connection.is_private_address(self.lines[0].connection.remote_address):
-        return ''
-      else:
-        return connection_line.get_locale('')
+      return '' if self.is_private() else connection_line.get_locale('')
     else:
       return ''
 



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