diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java
index 938aae6dc..a9ba96284 100644
--- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java
+++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java
@@ -490,17 +490,20 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable
_log.warn("Unable to resolve " + destination + " (proxy? " + usingWWWProxy + ", request: " + targetRequest);
String str;
byte[] header;
+ boolean showAddrHelper = false;
if (usingWWWProxy)
str = FileUtil.readTextFile("docs/dnfp-header.ht", 100, true);
else if(ahelper != 0)
str = FileUtil.readTextFile("docs/dnfb-header.ht", 100, true);
- else
+ else {
str = FileUtil.readTextFile("docs/dnfh-header.ht", 100, true);
+ showAddrHelper = true;
+ }
if (str != null)
header = str.getBytes();
else
header = ERR_DESTINATION_UNKNOWN;
- writeErrorMessage(header, out, targetRequest, usingWWWProxy, destination);
+ writeErrorMessage(header, out, targetRequest, usingWWWProxy, destination, showAddrHelper);
s.close();
return;
}
@@ -569,7 +572,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable
}
private static void writeErrorMessage(byte[] errMessage, OutputStream out, String targetRequest,
- boolean usingWWWProxy, String wwwProxy) throws IOException {
+ boolean usingWWWProxy, String wwwProxy, boolean showAddrHelper) throws IOException {
if (out != null) {
out.write(errMessage);
if (targetRequest != null) {
@@ -581,6 +584,13 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable
out.write(uri.getBytes());
out.write("".getBytes());
if (usingWWWProxy) out.write(("
WWW proxy: " + wwwProxy).getBytes());
+ if (showAddrHelper) {
+ out.write("
Click below to try an address helper link:
http://orion.i2p/jump/".getBytes());
+ out.write(uri.getBytes());
+ out.write("".getBytes());
+ }
}
out.write("
I2P HTTP Proxy Server
Generated on: ".getBytes());
out.write(new Date().toString().getBytes());
@@ -606,7 +616,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable
header = str.getBytes();
else
header = ERR_DESTINATION_UNKNOWN;
- writeErrorMessage(header, out, targetRequest, usingWWWProxy, wwwProxy);
+ writeErrorMessage(header, out, targetRequest, usingWWWProxy, wwwProxy, false);
} catch (IOException ioe) {
_log.warn(getPrefix(requestId) + "Error writing out the 'destination was unknown' " + "message", ioe);
}
diff --git a/history.txt b/history.txt
index d6782919c..31316feb4 100644
--- a/history.txt
+++ b/history.txt
@@ -1,4 +1,7 @@
-$Id: history.txt,v 1.336 2005/11/29 07:46:34 jrandom Exp $
+$Id: history.txt,v 1.337 2005/11/29 11:58:01 jrandom Exp $
+
+2005-11-29 zzz
+ * Added a link to orion's jump page on the 'key not found' error page.
2005-11-29 jrandom
* Further Syndie UI cleanup
diff --git a/router/java/src/net/i2p/router/RouterVersion.java b/router/java/src/net/i2p/router/RouterVersion.java
index b1a1fef50..fb921acea 100644
--- a/router/java/src/net/i2p/router/RouterVersion.java
+++ b/router/java/src/net/i2p/router/RouterVersion.java
@@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
*
*/
public class RouterVersion {
- public final static String ID = "$Revision: 1.303 $ $Date: 2005/11/28 11:02:40 $";
+ public final static String ID = "$Revision: 1.304 $ $Date: 2005/11/29 11:58:02 $";
public final static String VERSION = "0.6.1.6";
- public final static long BUILD = 3;
+ public final static long BUILD = 4;
public static void main(String args[]) {
System.out.println("I2P Router version: " + VERSION + "-" + BUILD);
System.out.println("Router ID: " + RouterVersion.ID);