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

pull/1/head
Michael Peter Christen 11 years ago
parent b6d57f06eb
commit cfb20bc0ce

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

Loading…
Cancel
Save