summaryrefslogtreecommitdiff
path: root/test/net
diff options
context:
space:
mode:
authorreger <reger18@arcor.de>2014-03-02 06:13:21 +0100
committerreger <reger18@arcor.de>2014-03-02 06:13:21 +0100
commit6878c90f99407cba409302528436c8adc359be41 (patch)
treeea6fd6cbda3b2e8dc2ef42d1a9d90976205c6d11 /test/net
parent61e51d47a5ce6e6d6a166f1664c813507e100a92 (diff)
fix: IPv6 INTRANET_PATTERNS for local ip (see http://bugs.yacy.net/view.php?id=378)
requiring following ":" for fc and fd prefix and made pattern match case insesitive - add some more ipv6 test cases to MultiProtocolURLTest.java
Diffstat (limited to 'test/net')
-rw-r--r--test/net/yacy/cora/document/id/MultiProtocolURLTest.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/net/yacy/cora/document/id/MultiProtocolURLTest.java b/test/net/yacy/cora/document/id/MultiProtocolURLTest.java
index af6f932fc..046083b8d 100644
--- a/test/net/yacy/cora/document/id/MultiProtocolURLTest.java
+++ b/test/net/yacy/cora/document/id/MultiProtocolURLTest.java
@@ -81,6 +81,13 @@ public class MultiProtocolURLTest {
testurls.put("http://[::1]/index.html", Boolean.TRUE);
testurls.put("http://[::1]:8090/index.html", Boolean.TRUE);
testurls.put("http://[0::1]/index.html", Boolean.TRUE);
+ testurls.put("http://[::0:1]:80/index.html", Boolean.TRUE);
+
+ testurls.put("http://[fc00:0:0:0:0:0:0:1]/index.html", Boolean.TRUE);
+ testurls.put("http://[fc00::fa01:ff]/index.html", Boolean.TRUE);
+ testurls.put("http://[fD00:0:0:0:0:0:0:1]/index.html", Boolean.TRUE);
+ testurls.put("http://[fe80:0:0:0:0:0:0:1]/index.html", Boolean.TRUE);
+ testurls.put("http://[fe80::1]/index.html", Boolean.TRUE);
// test urls for possible issue with IPv6 misinterpretation
testurls.put("http://fcedit.com", Boolean.FALSE);