diff --git a/src/Lifo/IP/IP.php b/src/Lifo/IP/IP.php index 32257e5..1af587f 100644 --- a/src/Lifo/IP/IP.php +++ b/src/Lifo/IP/IP.php @@ -101,11 +101,6 @@ public static function inet_dtop($decimal, $version = null) $ip = inet_ntop($packed); } - // Turn IPv6 to IPv4 if it's IPv4 - if ($version != 6 and preg_match('/^::\d+\./', $ip)) { - return substr($ip, 2); - } - return $ip; } @@ -174,7 +169,7 @@ public static function inet_expand($ip) * One use-case for this is IP 6to4 tunnels used in networking. * * @example - * to_ipv4("10.10.10.10") == a0a:a0a + * to_ipv6("10.10.10.10") == a0a:a0a * * @param string $ip IPv4 address. * @param boolean $mapped If true a Full IPv6 address is returned within the