【发布时间】:2014-11-13 07:07:04
【问题描述】:
在一个开源项目中,我看到它们包含 GeoIP.h 头文件并调用它们的函数来了解 IP 的国家代码。我想知道GeoIP.h使用的数据库在哪里
我浏览了 GeoIP.h 的源代码 http://www9.biostr.washington.edu/webalizer/src/stonesteps.ca/webalizer_src_3_4_4_1/GeoIP.h
它使用一个变量 FILE *GeoIPDatabase;请建议。我需要整个数据库。
===编辑===
我正在访问的源代码是这样的。它没有提到要使用的任何数据库! https://github.com/lampeh/libvmod-geoip/blob/master/src/vmod_geoip.c。
【问题讨论】: