mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
removing the [] for ipv6 addresses may be a bad idea..
This commit is contained in:
parent
b6d57f06eb
commit
cfb20bc0ce
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user