Skip to content

Commit e4d89b6

Browse files
Accept IPv6.
1 parent cc9a5cb commit e4d89b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

class.IP2LocationAPI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct($apiKey = '', $package = 'WS24', $useSSL = false)
3636

3737
public function query($ip)
3838
{
39-
if (!filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
39+
if (!filter_var($ip, FILTER_VALIDATE_IP)) {
4040
return false;
4141
}
4242

0 commit comments

Comments
 (0)