merge of '227107019f384da18e4670a405831faa8ba32555'

and 'a089ba5e81e51182c61fd5a1db8ac057001a24dc'
This commit is contained in:
dev
2009-04-13 13:20:50 +00:00

View File

@@ -290,9 +290,9 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable
host = request.substring(0, pos);
// parse port
pos = host.indexOf(":");
int posPort = host.indexOf(":");
int port = 80;
if(pos != -1) {
if(posPort != -1) {
String[] parts = host.split(":");
host = parts[0];
try {