From 892786bf0c7d74f4806baeb37b61ffbe15937021 Mon Sep 17 00:00:00 2001 From: jrandom Date: Sat, 30 Oct 2004 02:40:52 +0000 Subject: [PATCH] 2004-10-29 jrandom * Strip the Referer, Via, and From headers completely, rather than inserting a bogus value ("i2p"). This should help with the use of SnipSnap and Geeklog (thanks nickster and DrWoo!) --- .../src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java | 12 +++++++++--- history.txt | 7 ++++++- router/java/src/net/i2p/router/RouterVersion.java | 4 ++-- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java index 599581eaa..f17ffc934 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java @@ -298,11 +298,17 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable line = "User-Agent: MYOB/6.66 (AN/ON)"; } else if (line.startsWith("Referer: ")) { // Shouldn't we be more specific, like accepting in-site referers ? - line = "Referer: i2p"; + //line = "Referer: i2p"; + line = null; + continue; // completely strip the line } else if (line.startsWith("Via: ")) { - line = "Via: i2p"; + //line = "Via: i2p"; + line = null; + continue; // completely strip the line } else if (line.startsWith("From: ")) { - line = "From: i2p"; + //line = "From: i2p"; + line = null; + continue; // completely strip the line } } diff --git a/history.txt b/history.txt index 18af3c153..c8bdd19a1 100644 --- a/history.txt +++ b/history.txt @@ -1,4 +1,9 @@ -$Id: history.txt,v 1.56 2004/10/24 18:00:44 jrandom Exp $ +$Id: history.txt,v 1.57 2004/10/27 21:11:52 jrandom Exp $ + +2004-10-29 jrandom + * Strip the Referer, Via, and From headers completely, rather than + inserting a bogus value ("i2p"). This should help with the use of + SnipSnap and Geeklog (thanks nickster and DrWoo!) 2004-10-27 jrandom * Fix a strange race condition on i2cp client disconnect. diff --git a/router/java/src/net/i2p/router/RouterVersion.java b/router/java/src/net/i2p/router/RouterVersion.java index 568b4fcfc..da11ca1fd 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.62 $ $Date: 2004/10/24 18:00:44 $"; + public final static String ID = "$Revision: 1.63 $ $Date: 2004/10/27 21:11:52 $"; public final static String VERSION = "0.4.1.3"; - 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); System.out.println("Router ID: " + RouterVersion.ID);