diff options
| author | Ruslan Ermilov <ru@nginx.com> | 2013-01-24 16:15:51 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@nginx.com> | 2013-01-24 16:15:51 +0000 |
| commit | db5e48d9b8c49088f278d8a2e6e3e1cf82d441f2 (patch) | |
| tree | 1882f4be7845cbd8231b594dd827c5cfdee3b121 /auto/lib | |
| parent | 6aa684c3c31180752cd7ccac2e73261799a3445f (diff) | |
| download | nginx-db5e48d9b8c49088f278d8a2e6e3e1cf82d441f2.tar.gz nginx-db5e48d9b8c49088f278d8a2e6e3e1cf82d441f2.tar.bz2 | |
GeoIP: IPv6 support.
When using IPv6 databases, IPv4 addresses are looked up as IPv4-mapped
IPv6 addresses.
Mostly based on a patch by Gregor Kališnik (ticket #250).
Diffstat (limited to 'auto/lib')
| -rw-r--r-- | auto/lib/geoip/conf | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/auto/lib/geoip/conf b/auto/lib/geoip/conf index 49af32ad2..53c274d54 100644 --- a/auto/lib/geoip/conf +++ b/auto/lib/geoip/conf @@ -69,6 +69,18 @@ if [ $ngx_found = yes ]; then CORE_INCS="$CORE_INCS $ngx_feature_path" CORE_LIBS="$CORE_LIBS $ngx_feature_libs" + if [ $NGX_IPV6 = YES ]; then + ngx_feature="GeoIP IPv6 support" + ngx_feature_name="NGX_HAVE_GEOIP_V6" + ngx_feature_run=no + ngx_feature_incs="#include <stdio.h> + #include <GeoIP.h>" + #ngx_feature_path= + #ngx_feature_libs= + ngx_feature_test="printf(\"%d\", GEOIP_CITY_EDITION_REV0_V6);" + . auto/feature + fi + else cat << END |
