Author: toad
Date: 2007-12-14 20:58:44 +0000 (Fri, 14 Dec 2007)
New Revision: 16549

Modified:
   trunk/freenet/src/freenet/node/NodeCrypto.java
Log:
Doh... PeerNode constructor on stable is tolerant of no location, but 
innerProcess... called by completedHandshake isn't. So we need to include it 
here, until 1091 is mandatory. :(

Modified: trunk/freenet/src/freenet/node/NodeCrypto.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeCrypto.java      2007-12-14 20:56:13 UTC 
(rev 16548)
+++ trunk/freenet/src/freenet/node/NodeCrypto.java      2007-12-14 20:58:44 UTC 
(rev 16549)
@@ -295,6 +295,8 @@
                        }
                } // Don't include IPs for anonymous initiator.
                // Negotiation types
+               // FIXME remove location as soon as this build is mandatory!
+               fs.put("location", node.lm.getLocation());
                fs.putSingle("version", Version.getVersionString()); // Keep, 
vital that peer know our version. For example, some types may be sent in 
different formats to different node versions (e.g. Peer).
                fs.putSingle("lastGoodVersion", 
Version.getLastGoodVersionString()); // Also vital
                // FIXME move inside bracket after next mandatory.


Reply via email to