From 77b5080e083230cc2753fb5b73576d06a6978aa5 Mon Sep 17 00:00:00 2001 From: Jason Morriss Date: Mon, 13 Jan 2014 08:56:49 -0500 Subject: [PATCH] fixed typo in comment. Removed dead code in inet_dtop. --- src/Lifo/IP/IP.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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