mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
25.05.2014 2117f562f38b63e27b695d05c81e46afdbe6b1a4
refs
author Matthew Swift <matthew.swift@forgerock.com>
Saturday, January 25, 2014 02:05 +0100
committer Matthew Swift <matthew.swift@forgerock.com>
Saturday, January 25, 2014 02:05 +0100
commit2117f562f38b63e27b695d05c81e46afdbe6b1a4
tree 98ff793f596f3a7c3124792e1efda39ff1dfec65 tree | zip | gz
parent df6509ed4e1262229a67d8269998233d2ddb8a86 view | diff
Avoid potential DNS lookups when validating IPv6 address masks.

* on my machine, which has IPv6 networking, the test for invalid IPv6 address masks was taking 60 seconds to complete, or 10s per attempted decode
* use reflection to invoke sun.net.util.IPAddressUtil#isIPv6LiteralAddress() if it is available.
1 files modified
34 ■■■■■ changed files
opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/AddressMask.java 34 ●●●●● diff | view | raw | blame | history