fix extract of inboundlinks_protocol_sxt

url counter maybe > 999
pull/8/head
reger 10 years ago
parent 2bc9cb5828
commit f3ce99bfb8

@ -1888,7 +1888,11 @@ public class CollectionConfiguration extends SchemaConfiguration implements Seri
List<String> a = new ArrayList<String>(dimension);
for (int i = 0; i < dimension; i++) a.add("http");
if (iplist == null) return a;
for (Object ip: iplist) a.set(Integer.parseInt(((String) ip).substring(0, 3)), ((String) ip).substring(4));
for (Object ip : iplist) {
// ip format is 001-https but can be 4 digits 1011-https
int i = ((String) ip).indexOf('-');
a.set(Integer.parseInt(((String) ip).substring(0, i)), ((String) ip).substring(i+1));
}
return a;
}

Loading…
Cancel
Save