Author: toad
Date: 2008-01-31 23:08:29 +0000 (Thu, 31 Jan 2008)
New Revision: 17451
Modified:
trunk/freenet/src/freenet/node/IPDetectorPluginManager.java
Log:
Comments
Modified: trunk/freenet/src/freenet/node/IPDetectorPluginManager.java
===================================================================
--- trunk/freenet/src/freenet/node/IPDetectorPluginManager.java 2008-01-31
23:05:47 UTC (rev 17450)
+++ trunk/freenet/src/freenet/node/IPDetectorPluginManager.java 2008-01-31
23:08:29 UTC (rev 17451)
@@ -379,7 +379,9 @@
firstTimeUrgent = now;
if(detector.oldIPAddress != null &&
detector.oldIPAddress.isRealInternetAddress(false, false)) {
- // Detect after 2 minutes: wait for incoming
connections.
+ // Allow 2 minutes to get incoming connections
and therefore detect from them.
+ // In the meantime, *hopefully* our
oldIPAddress is valid.
+ // If not, we'll find out in 2 minutes.
if(now - firstTimeUrgent > 2*60*1000) {
detect = true;
firstTimeUrgent = now; // Reset now
rather than on next round.