Add full IPV6 support
This commit is contained in:
@@ -70,7 +70,9 @@ const uint8_t* ip_to_geo(uint8_t* ip, unsigned ip_size)
|
||||
const ip_level* first_level;
|
||||
|
||||
if (ip_size == 4)
|
||||
first_level = s_root_ip[ip[0]];
|
||||
first_level = s_root_ipv4[ip[0]];
|
||||
else if (ip_size == 16)
|
||||
first_level = s_root_ipv6[ip[0]];
|
||||
else
|
||||
return NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user