diff --git a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java
index 37bbbcc1e..53b1abc27 100644
--- a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java
+++ b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java
@@ -447,11 +447,24 @@ public class I2PSnarkServlet extends HttpServlet {
out.write(filename);
if (remaining == 0)
out.write("");
- // temporarily hardcoded for postman, requires bytemonsoon patch for lookup by info_hash
- if (snark.meta.getAnnounce().startsWith("http://YRgrgTLG")) {
- out.write(" (Details)");
+ // temporarily hardcoded for postman and anonymity, requires bytemonsoon patch for lookup by info_hash
+ String announce = snark.meta.getAnnounce();
+ if (announce.startsWith("http://YRgrgTLG") || announce.startsWith("http://8EoJZIKr")) {
+ Map trackers = _manager.getTrackers();
+ for (Iterator iter = trackers.keySet().iterator(); iter.hasNext(); ) {
+ String name = (String)iter.next();
+ String baseURL = (String)trackers.get(name);
+ if (!baseURL.startsWith(announce))
+ continue;
+ int e = baseURL.indexOf('=');
+ if (e < 0)
+ continue;
+ baseURL = baseURL.substring(e + 1);
+ out.write(" (Details)");
+ break;
+ }
}
out.write("\n\t");
diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java
index 166ff38aa..d84bc9f98 100644
--- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java
+++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java
@@ -597,6 +597,9 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable
}
}
+ private static String jumpServers[] = {"http://orion.i2p/jump/",
+ "http://trevorreznik.i2p/cgi-bin/jump.php?hostname="
+ };
private static void writeErrorMessage(byte[] errMessage, OutputStream out, String targetRequest,
boolean usingWWWProxy, String wwwProxy, boolean showAddrHelper) throws IOException {
if (out != null) {
@@ -615,11 +618,16 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable
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("
Click a link below to look for an address helper by using a \"jump\" service:
".getBytes());
+ for (int i = 0; i < jumpServers.length; i++) {
+ out.write("
".getBytes());
+ out.write(jumpServers[i].getBytes());
+ out.write(uri.getBytes());
+ out.write("".getBytes());
+ }
}
}
out.write("
I2P HTTP Proxy Server
Generated on: ".getBytes());
diff --git a/history.txt b/history.txt
index f87911a0f..a72c95588 100644
--- a/history.txt
+++ b/history.txt
@@ -1,4 +1,8 @@
-$Id: history.txt,v 1.564 2007-03-22 00:21:27 zzz Exp $
+$Id: history.txt,v 1.565 2007-03-24 02:57:39 zzz Exp $
+
+2007-03-31 zzz
+ * Add trevorreznik jump server to the http proxy error page
+ * Add anonymity to the trackers supporting details links in i2psnark
2007-03-24 zzz
* Remove Syndie from build targets and navbar
diff --git a/router/java/src/net/i2p/router/RouterVersion.java b/router/java/src/net/i2p/router/RouterVersion.java
index 854dee5c5..d4584be7f 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.500 $ $Date: 2007-03-22 00:21:25 $";
+ public final static String ID = "$Revision: 1.501 $ $Date: 2007-03-24 02:57:37 $";
public final static String VERSION = "0.6.1.28";
- 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);