mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +00:00
Merge pull request #2386 from AlexanderS/ds4200
[DS-4200] IPMatcher: Fix netmask conversion
This commit is contained in:
@@ -153,6 +153,14 @@ public class IPMatcherTest {
|
||||
assertFalse(ipMatcher.match("0:0:0:0:0:0:0:1"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIPv6FullMaskMatching() throws Exception {
|
||||
final IPMatcher ipMatcher = new IPMatcher("::2/128");
|
||||
|
||||
assertTrue(ipMatcher.match("0:0:0:0:0:0:0:2"));
|
||||
assertFalse(ipMatcher.match("0:0:0:0:0:0:0:1"));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testAsteriskMatchingSuccess() throws Exception {
|
||||
|
Reference in New Issue
Block a user