Add IPv6 support for DNSBL #48
Merged
nonmakina
merged 5 commits from ipv6-dnsbl
into config
3 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'ipv6-dnsbl'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Allows DNSBL to block IPv6 addresses. Briefly tested.
(Should have used the library but didn't want to experiement and possibly break the includes)
return;
$ipaddr = ReverseIPOctets($_SERVER['REMOTE_ADDR']);
if (isIPv6()) {
re: supporting IPv6: very nice.
return strrev(implode(".", str_split(str_replace(':', '', inet_expand($ip)))));
}
// copypastad from lib/IP/Lifo/IP.php, TODO replace this with a proper include
why not just include the file?
a require_once should work?
Threw a 500 internal error when I tried. Didn't investigate as I believe this functionality is needed immediately.
Edit: there was a typo in the filepath.
Great job, as always!
0070318b0d
into config 3 years ago0070318b0d
.