removing the [] for ipv6 addresses may be a bad idea..

This commit is contained in:
Michael Peter Christen 2014-09-04 18:17:38 +02:00
parent b6d57f06eb
commit cfb20bc0ce

View File

@ -779,12 +779,14 @@ public class MultiProtocolURL implements Serializable, Comparable<MultiProtocolU
}
public String getHost() {
/*
if (this.host == null) return null;
if (this.host.length() > 0 && this.host.charAt(0) == '[') {
int p = this.host.indexOf(']');
if (p < 0) return this.host;
return this.host.substring(1, p);
}
*/
return this.host;
}