Author: toad
Date: 2006-05-16 17:08:07 +0000 (Tue, 16 May 2006)
New Revision: 8709

Modified:
   trunk/freenet/src/freenet/node/Node.java
Log:
Fix detection of IP address from network.

Modified: trunk/freenet/src/freenet/node/Node.java
===================================================================
--- trunk/freenet/src/freenet/node/Node.java    2006-05-16 15:58:36 UTC (rev 
8708)
+++ trunk/freenet/src/freenet/node/Node.java    2006-05-16 17:08:07 UTC (rev 
8709)
@@ -1850,7 +1850,7 @@
                        int bestPopularity = 0;
                        while(it.hasNext()) {
                                InetAddress cur = (InetAddress) it.next();
-                               int curPop = ((Integer) 
(countsByPeer.get(best))).intValue();
+                               int curPop = ((Integer) 
(countsByPeer.get(cur))).intValue();
                                if(curPop > bestPopularity) {
                                        bestPopularity = curPop;
                                        best = cur;


Reply via email to