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!)
This commit is contained in:
jrandom
2004-10-30 02:40:52 +00:00
committed by zzz
parent 0c51f2b583
commit 892786bf0c
3 changed files with 17 additions and 6 deletions

View File

@ -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
}
}

View File

@ -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.

View File

@ -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);