Author: zothar
Date: 2007-04-13 23:33:14 +0000 (Fri, 13 Apr 2007)
New Revision: 12673

Modified:
   trunk/freenet/src/freenet/node/NodeClientCore.java
Log:
Fix the broken allowInsecureCHKs/allowInsecureSSKs settings by actually using 
the value from the configuration system rather than just using the Java default 
value for booleans of false.

Modified: trunk/freenet/src/freenet/node/NodeClientCore.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeClientCore.java  2007-04-13 23:24:30 UTC 
(rev 12672)
+++ trunk/freenet/src/freenet/node/NodeClientCore.java  2007-04-13 23:33:14 UTC 
(rev 12673)
@@ -326,6 +326,8 @@

                });

+               Key.ALLOW_INSECURE_CLIENT_CHKS = 
nodeConfig.getBoolean("allowInsecureCHKs");
+               
                nodeConfig.register("allowInsecureSSKs", true, sortOrder++, 
true, false, "Allow insecure SSKs?", "Before 1010, all SSKs were insecure (only 
half encrypted). Allow old SSKs?",
                                new BooleanCallback() {

@@ -339,6 +341,8 @@

                });

+               Key.ALLOW_INSECURE_CLIENT_SSKS = 
nodeConfig.getBoolean("allowInsecureSSKs");
+               
        }

        protected synchronized void setDownloadAllowedDirs(String[] val) {


Reply via email to