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

Matthew Swift
25.05.2014 2266a5e3585655cd8cf7be49d92b6e7cc8f83df9
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
commit2266a5e3585655cd8cf7be49d92b6e7cc8f83df9
tree 5585723b999d32e6c3ad2371acd859d68cdd3c14 tree | zip | gz
parent a3dcf4853e1d874080399564287170af5aeb7a99 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-core/src/main/java/org/forgerock/opendj/ldap/AddressMask.java 34 ●●●●● diff | view | raw | blame | history