Author: toad
Date: 2008-11-08 18:35:57 +0000 (Sat, 08 Nov 2008)
New Revision: 23435
Modified:
trunk/freenet/src/freenet/clients/http/SimpleToadletServer.java
Log:
Don't force old users to go through the wizard again.
Modified: trunk/freenet/src/freenet/clients/http/SimpleToadletServer.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/SimpleToadletServer.java
2008-11-08 18:34:40 UTC (rev 23434)
+++ trunk/freenet/src/freenet/clients/http/SimpleToadletServer.java
2008-11-08 18:35:57 UTC (rev 23435)
@@ -559,11 +559,15 @@
// Show the wizard until dismissed by the user (See bug #2624)
if(!fproxyHasCompletedWizard) {
+ if(!(core != null && core.node != null &&
(core.node.isOpennetEnabled() || core.node.getPeerNodes().length > 0))) {
+
if(!(path.startsWith(FirstTimeWizardToadlet.TOADLET_URL) ||
path.startsWith(StaticToadlet.ROOT_URL)))
try {
throw new
PermanentRedirectException(new URI(FirstTimeWizardToadlet.TOADLET_URL));
} catch(URISyntaxException e) { throw new
Error(e); }
+
+ }
}
Iterator<ToadletElement> i = toadlets.iterator();