Author: toad
Date: 2007-11-20 19:05:06 +0000 (Tue, 20 Nov 2007)
New Revision: 15880
Modified:
trunk/freenet/src/freenet/node/PeerNode.java
Log:
Don't send handshakes instantly on startup.
Modified: trunk/freenet/src/freenet/node/PeerNode.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerNode.java 2007-11-20 19:02:11 UTC
(rev 15879)
+++ trunk/freenet/src/freenet/node/PeerNode.java 2007-11-20 19:05:06 UTC
(rev 15880)
@@ -625,7 +625,10 @@
lastAttemptedHandshakeIPUpdateTime=0;
maybeUpdateHandshakeIPs(true);
- sendHandshakeTime = now; // Be sure we're ready to handshake right
away
+ if(fromLocal)
+ innerCalcNextHandshake(false, false, now); // Let them connect
so we can recognise we are NATed
+ else
+ sendHandshakeTime = now; // Be sure we're ready to handshake
right away
// status may have changed from PEER_NODE_STATUS_DISCONNECTED to
PEER_NODE_STATUS_NEVER_CONNECTED
}