Author: toad
Date: 2007-12-15 00:31:25 +0000 (Sat, 15 Dec 2007)
New Revision: 16558

Modified:
   trunk/freenet/src/freenet/node/NodeCrypto.java
Log:
Save the location in addPrivateFields even if not in exportPublic...

Modified: trunk/freenet/src/freenet/node/NodeCrypto.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeCrypto.java      2007-12-15 00:30:47 UTC 
(rev 16557)
+++ trunk/freenet/src/freenet/node/NodeCrypto.java      2007-12-15 00:31:25 UTC 
(rev 16558)
@@ -414,6 +414,11 @@
        void addPrivateFields(SimpleFieldSet fs) {
                fs.put("dsaPrivKey", privKey.asFieldSet());
                fs.putSingle("ark.privURI", 
myARK.getInsertURI().toString(false, false));
+               // FIXME remove the conditional after we've removed it from 
exportPublic...
+               // We must save the location!
+               if(fs.get("location") != null)
+                       fs.put("location", node.lm.getLocation());
+               
        }

        public int getIdentityHash(){


Reply via email to