ipaddresses : completeAddressWithZero allow the full IPv6 with dots
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2687 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -118,6 +118,11 @@ class ipaddresses
|
||||
}
|
||||
return implode (":", $ipnew);
|
||||
}
|
||||
elseif (substr_count ($ip, ".") === 31)
|
||||
{
|
||||
// Full IPv6 with dots
|
||||
return $ip;
|
||||
}
|
||||
elseif (substr_count ($ip, ".") === 3)
|
||||
{
|
||||
// IPv4
|
||||
|
||||
Reference in New Issue
Block a user