fix crawl start from file

pull/1/head
sixcooler 13 years ago
parent c03d306afa
commit 97f60010d8

@ -715,7 +715,7 @@ public class MultiProtocolURI implements Serializable, Comparable<MultiProtocolU
public String getHost() {
if (this.host == null) return null;
if (this.host.charAt(0) == '[') {
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);

Loading…
Cancel
Save