Mercurial > hg > nginx
comparison auto/lib/geoip/conf @ 5015:a74d211f034d
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).
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 24 Jan 2013 16:15:51 +0000 |
parents | 210b66a6fc7f |
children | 85dea406e18f |
comparison
equal
deleted
inserted
replaced
5014:210b66a6fc7f | 5015:a74d211f034d |
---|---|
67 if [ $ngx_found = yes ]; then | 67 if [ $ngx_found = yes ]; then |
68 | 68 |
69 CORE_INCS="$CORE_INCS $ngx_feature_path" | 69 CORE_INCS="$CORE_INCS $ngx_feature_path" |
70 CORE_LIBS="$CORE_LIBS $ngx_feature_libs" | 70 CORE_LIBS="$CORE_LIBS $ngx_feature_libs" |
71 | 71 |
72 if [ $NGX_IPV6 = YES ]; then | |
73 ngx_feature="GeoIP IPv6 support" | |
74 ngx_feature_name="NGX_HAVE_GEOIP_V6" | |
75 ngx_feature_run=no | |
76 ngx_feature_incs="#include <stdio.h> | |
77 #include <GeoIP.h>" | |
78 #ngx_feature_path= | |
79 #ngx_feature_libs= | |
80 ngx_feature_test="printf(\"%d\", GEOIP_CITY_EDITION_REV0_V6);" | |
81 . auto/feature | |
82 fi | |
83 | |
72 else | 84 else |
73 | 85 |
74 cat << END | 86 cat << END |
75 | 87 |
76 $0: error: the GeoIP module requires the GeoIP library. | 88 $0: error: the GeoIP module requires the GeoIP library. |