From 33a405dab8a38c299c967ac28189b526a99f61f4 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Fri, 24 Feb 2012 00:50:46 +0100 Subject: [PATCH] ipv6 bugfix --- source/net/yacy/cora/document/MultiProtocolURI.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/net/yacy/cora/document/MultiProtocolURI.java b/source/net/yacy/cora/document/MultiProtocolURI.java index d8ce9b393..cc6d67d24 100644 --- a/source/net/yacy/cora/document/MultiProtocolURI.java +++ b/source/net/yacy/cora/document/MultiProtocolURI.java @@ -560,7 +560,12 @@ public class MultiProtocolURI implements Serializable, Comparable= 0 && ((ip6 = this.host.indexOf("]", ip6)) > 0)) { + pss = ip6 + 1; + } + final int r = this.host.indexOf(":", pss); if (r < 0) { this.port = dflt; } else {