Skip to content

Commit

Permalink
Continued rounding errors, ref #987
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Feb 9, 2018
1 parent 27cb092 commit 972c196
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions angelleye-includes/angelleye-utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -1949,11 +1949,9 @@ public static function get_user_ip() {
if ( ! preg_match( $ipv4_pattern, $ip_address ) && filter_var($ip_address, FILTER_VALIDATE_IP,FILTER_FLAG_IPV6) ) {
$ip_address = '';
}
$ip_address = '2001:0db8:85a3:0000:0000:8a2e:0370:7334';
if(strlen($ip_address) > 16) {
$ip_address = '';
}

return $ip_address;
}

Expand Down

0 comments on commit 972c196

Please sign in to comment.