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:
@ -298,11 +298,17 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable
|
|||||||
line = "User-Agent: MYOB/6.66 (AN/ON)";
|
line = "User-Agent: MYOB/6.66 (AN/ON)";
|
||||||
} else if (line.startsWith("Referer: ")) {
|
} else if (line.startsWith("Referer: ")) {
|
||||||
// Shouldn't we be more specific, like accepting in-site referers ?
|
// 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: ")) {
|
} else if (line.startsWith("Via: ")) {
|
||||||
line = "Via: i2p";
|
//line = "Via: i2p";
|
||||||
|
line = null;
|
||||||
|
continue; // completely strip the line
|
||||||
} else if (line.startsWith("From: ")) {
|
} else if (line.startsWith("From: ")) {
|
||||||
line = "From: i2p";
|
//line = "From: i2p";
|
||||||
|
line = null;
|
||||||
|
continue; // completely strip the line
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
2004-10-27 jrandom
|
||||||
* Fix a strange race condition on i2cp client disconnect.
|
* Fix a strange race condition on i2cp client disconnect.
|
||||||
|
@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RouterVersion {
|
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 String VERSION = "0.4.1.3";
|
||||||
public final static long BUILD = 3;
|
public final static long BUILD = 4;
|
||||||
public static void main(String args[]) {
|
public static void main(String args[]) {
|
||||||
System.out.println("I2P Router version: " + VERSION);
|
System.out.println("I2P Router version: " + VERSION);
|
||||||
System.out.println("Router ID: " + RouterVersion.ID);
|
System.out.println("Router ID: " + RouterVersion.ID);
|
||||||
|
Reference in New Issue
Block a user