Author: nextgens
Date: 2006-08-16 20:55:49 +0000 (Wed, 16 Aug 2006)
New Revision: 10133
Modified:
trunk/freenet/src/freenet/node/fcp/NodeHelloMessage.java
Log:
We ought to check the Version reply in NodeHelloMessage
Modified: trunk/freenet/src/freenet/node/fcp/NodeHelloMessage.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/NodeHelloMessage.java 2006-08-16
20:36:05 UTC (rev 10132)
+++ trunk/freenet/src/freenet/node/fcp/NodeHelloMessage.java 2006-08-16
20:55:49 UTC (rev 10133)
@@ -41,6 +41,8 @@
this.nodeVersion = fs.get("Version");
if(nodeVersion == null)
throw new
MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "No Version!",
null);
+ else if(!nodeVersion.startsWith("Fred,0.7,1.0,"))
+ throw new
MessageInvalidException(ProtocolErrorMessage.NOT_SUPPORTED, "Fred Version is
incompatible!", null);
this.nodeCompressionCodecs = fs.get("CompressionCodecs");
if(nodeCompressionCodecs == null)