2005-10-05 jrandom

* Allow the first few packets in the stream to fill in their IDs during
      handshake (thanks cervantes, Complication, et al!)  This should fix at
      least some of the intermittent HTTP POST issues.
This commit is contained in:
jrandom
2005-10-05 23:24:33 +00:00
committed by zzz
parent 3b5b48ad8a
commit 4dd628dbc8
7 changed files with 28 additions and 18 deletions

View File

@@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
*
*/
public class RouterVersion {
public final static String ID = "$Revision: 1.256 $ $Date: 2005/10/04 02:36:25 $";
public final static String ID = "$Revision: 1.257 $ $Date: 2005/10/04 18:43:05 $";
public final static String VERSION = "0.6.1.1";
public final static long BUILD = 3;
public final static long BUILD = 4;
public static void main(String args[]) {
System.out.println("I2P Router version: " + VERSION + "-" + BUILD);
System.out.println("Router ID: " + RouterVersion.ID);

View File

@@ -488,8 +488,8 @@ public class TCPTransport extends TransportImpl {
if (Boolean.valueOf(allowLocal).booleanValue()) {
return true;
} else {
if (_log.shouldLog(Log.ERROR))
_log.error("External address " + address + " is not publicly routable");
if (_log.shouldLog(Log.WARN))
_log.warn("External address " + address + " is not publicly routable");
return false;
}
} else {
@@ -726,11 +726,12 @@ public class TCPTransport extends TransportImpl {
continue;
}
if (!allowAddress(tcpAddr)) {
_log.error("Message points at illegal address! "
+ msg.getTarget().getIdentity().calculateHash().toBase64().substring(0,6));
_log.error("Message points at illegal address! router "
+ msg.getTarget().getIdentity().calculateHash().toBase64().substring(0,6)
+ " address " + tcpAddr.toString());
iter.remove();
_context.shitlist().shitlistRouter(peer, "Invalid addressaddress...");
_context.shitlist().shitlistRouter(peer, "Invalid TCP address...");
_context.netDb().fail(peer);
for (int i = 0; i < msgs.size(); i++) {
OutNetMessage cur = (OutNetMessage)msgs.get(i);