diff --git a/ipaddresses.php b/ipaddresses.php index 03dfa2f..0160180 100644 --- a/ipaddresses.php +++ b/ipaddresses.php @@ -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