2004-09-03 oOo

* Added some filters to the HTTP request, replacing the User-Agent,
      Referrer, Via, and From headers, which helps until we have a more
      comprehensive filtering system.
2004-09-03  jrandom
    * Disabled the old listener on port 7655.
This commit is contained in:
jrandom
2004-09-03 07:22:24 +00:00
committed by zzz
parent 44c54ecc16
commit 49d4e565c6
4 changed files with 23 additions and 6 deletions

View File

@@ -281,6 +281,15 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable
line = "Host: " + host;
if (_log.shouldLog(Log.INFO))
_log.info(getPrefix(requestId) + "Setting host = " + host);
} else if (line.startsWith("User-Agent: ")) {
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";
} else if (line.startsWith("Via: ")) {
line = "Via: i2p";
} else if (line.startsWith("From: ")) {
line = "From: i2p";
}
}