* I2PTunnelHTTPClient: Reject 192.168.*

This commit is contained in:
zzz
2010-05-05 17:34:24 +00:00
parent f484ea8c64
commit 7344c2af47
2 changed files with 7 additions and 4 deletions

View File

@@ -508,7 +508,9 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable
}
line = method + " " + request.substring(pos);
} else if (host.toLowerCase().equals("localhost") || host.equals("127.0.0.1")) {
} else if (host.toLowerCase().equals("localhost") || host.equals("127.0.0.1") ||
host.startsWith("192.168.")) {
// if somebody is trying to get to 192.168.example.com, oh well
if (out != null) {
out.write(getErrorPage("localhost", ERR_LOCALHOST));
writeFooter(out);