I've done a good deal of work on on the ipv6. It now uses a function from MyPHPAdmin for parsing and validating ipv6 adresses. It uses a function which I had been looking at on Stack Overflow, but it has wider applicability and is more elegantly designed. I am sometimes puzzled by the results, but I am not using real world examples.
There are some new features which I think you will find useful. First, there is a Configration Option to turn browser-based ip checking on and off. It is off by default. This means that you won't be bothered by top of the browser messages, when you are not testing and haven't yet removed the test ips from the configuration manager. But more importantly, there is now a command line utility for testing ipv6 ips. It is
php ipv6_tests.php, found in the abortlogin/Math directory. Its most convenient functioning is to use a test file, named by default:
iv6_test.file. Its format is a standard php ini file. The sample looks like this:
['fe80::19c9:eb59:c1c7:fbcc/64']
test[]='fe80::19c9:eb59:f1cf:fbfc'
test[]='fe90::19c9:eb59:f1cf:fbfc'
test[]='fe80::37c9:eb59:f1cf:fbfc'
['2001:db8:a::/64']
test[]='2001:db8:a::'
test[]='2001:db8:a::ffff:fff0'
It is self explanatory. The bracketed entries are the
CIDR modified ips and the
test[] entries are the
ips to be tested. Or you can enter a test pair at the command line:
php php ipv6_tests.php 2001:db8:a:: 2001:db8:a::/64
You can also create an alternate test file giving it any name you wish, and running it:
php php ipv6_tests.php alternate.test.file
php php ipv6_tests.php -h will give you a usage message.
The utility must be run as above
php php ipv6_tests.php [...]
Runnng it without options will give you a sample display of results.
The link is the same as before:
https://github.com/turnermm/abortlogin/archive/ipv6.zip