Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
Use ipnum for city database lookups, not the hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
borisz committed Feb 19, 2013
1 parent 1ce0fbd commit 3a06789
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/geoiplookup6.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ geoiplookup(GeoIP * gi, char *hostname, int i)
}

else if (GEOIP_CITY_EDITION_REV0_V6 == i) {
gir = GeoIP_record_by_name_v6(gi, hostname);
gir = GeoIP_record_by_ipnum_v6(gi, ipnum);
if (NULL == gir) {
printf("%s: IP Address not found\n", GeoIPDBDescription[i]);
}
Expand All @@ -165,7 +165,7 @@ geoiplookup(GeoIP * gi, char *hostname, int i)
}
}
else if (GEOIP_CITY_EDITION_REV1_V6 == i) {
gir = GeoIP_record_by_name_v6(gi, hostname);
gir = GeoIP_record_by_ipnum_v6(gi, ipnum);
if (NULL == gir) {
printf("%s: IP Address not found\n", GeoIPDBDescription[i]);
}
Expand Down

0 comments on commit 3a06789

Please sign in to comment.