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

[or-cvs] r24238: {arm} fix: bug in taking known relays into consideration for disce (arm/trunk/src/interface/connections)



Author: atagar
Date: 2011-02-19 08:21:17 +0000 (Sat, 19 Feb 2011)
New Revision: 24238

Modified:
   arm/trunk/src/interface/connections/listings.py
Log:
fix: bug in taking known relays into consideration for discerning exit connections



Modified: arm/trunk/src/interface/connections/listings.py
===================================================================
--- arm/trunk/src/interface/connections/listings.py	2011-02-18 17:30:11 UTC (rev 24237)
+++ arm/trunk/src/interface/connections/listings.py	2011-02-19 08:21:17 UTC (rev 24238)
@@ -157,7 +157,7 @@
       isExitingAllowed = conn.isExitingAllowed(self.foreign.getIpAddr(), self.foreign.getPort())
       isExitConnection = isExitingAllowed and not isKnownRelay
       
-      return Category.EXIT if isExitingAllowed else Category.OUTBOUND
+      return Category.EXIT if isExitConnection else Category.OUTBOUND
     else: return self.baseType
   
   def isPrivate(self):