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:
2016-04-13 13:44:41 +00:00
parent 9d522d5ad6
commit 263730d53e

View File

@@ -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