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

Commit

Permalink
Add region_name to geoipupdate GEOIP_CITY_EDITION_REV1
Browse files Browse the repository at this point in the history
  • Loading branch information
borisz committed Sep 6, 2012
1 parent 64b48f2 commit a38ec9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
* Update time zones ( Boris Zentner )
* Update Region codes ( Boris Zentner )
* Update README.OSX for Lion ( Boris Zentner )
* bootstrap rebuilds ltmain.sh ( Boris Zentner )
* Update README.OSX for Lion ( Boris Zentner )
* Change Macedonia to Macedonia, The Former Yugoslav Republic of
( Boris Zentner )
* Add region_name to geoiplookup GEOIP_CITY_EDITION_REV1 ( Boris Zentner )
* Add region_name to geoiplookup GEOIP_CITY_EDITION_REV0 ( Chris Johnson )
* Add a --disable-data-files option. This allows you to build and install
the library without having a data/GeoIP.dat file. This is useful when
Expand Down
4 changes: 3 additions & 1 deletion apps/geoiplookup.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,9 @@ geoiplookup(GeoIP * gi, char *hostname, int i)
printf("%s: IP Address not found\n", GeoIPDBDescription[i]);
}
else {
printf("%s: %s, %s, %s, %s, %f, %f, %d, %d\n", GeoIPDBDescription[i], gir->country_code, _mk_NA(gir->region), _mk_NA(gir->city), _mk_NA(gir->postal_code),
printf("%s: %s, %s, %s, %s, %s, %f, %f, %d, %d\n", GeoIPDBDescription[i], gir->country_code, _mk_NA(gir->region),
_mk_NA(GeoIP_region_name_by_code(gir->country_code, gir->region)),
_mk_NA(gir->city), _mk_NA(gir->postal_code),
gir->latitude, gir->longitude, gir->metro_code, gir->area_code);
_say_range_by_ip(gi, ipnum);
GeoIPRecord_delete(gir);
Expand Down

0 comments on commit a38ec9f

Please sign in to comment.