Skip to content

Commit

Permalink
fixed typo in comment. Removed dead code in inet_dtop.
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo101 committed Jan 13, 2014
1 parent 1d24ce9 commit 77b5080
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Lifo/IP/IP.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 77b5080

Please sign in to comment.