Skip to content

Commit 36ff4fd

Browse files
authored
always return 1.1.1.1 for IP
an ugly hack, but it circumvents the issues with IPV6 addresses.
1 parent d776083 commit 36ff4fd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

class/art/functions.user.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ function mod_getIP($asString = false)
5454

5555
$the_IP = ($asString) ? $the_IP : ip2long($the_IP);
5656

57-
return $the_IP;
57+
//return $the_IP;
58+
return ip2long('1.1.1.1');
5859
}
5960

6061
function &mod_getUnameFromIds( $uid, $usereal = false, $linked = false )
@@ -113,4 +114,4 @@ function mod_getUnameFromId( $userid, $usereal = 0, $linked = false)
113114
}
114115

115116
endif;
116-
?>
117+
?>

0 commit comments

Comments
 (0)