Add full IPV6 support

This commit is contained in:
2016-02-06 14:24:26 +01:00
parent 401a2e98af
commit 4b791be9f6
3 changed files with 146 additions and 87 deletions

View File

@@ -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;