summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_geoip_module.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2013-02-11Merge of r5014, r5015, r5016, r5030: geoip ipv6 support.Maxim Dounin1-15/+145
*) Configure: fixed style of include directories. *) Configure: fixed GeoIP library detection. *) 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). *) GeoIP: removed pseudo-support of "proxy" and "netspeed" databases.
2012-09-24Merge of r4829: fixed strict aliasing with ipv6 (ticket #201).Maxim Dounin1-1/+10
Fixed strict aliasing bugs when dealing with IPv4-mapped IPv6 addresses.
2012-07-02Merge of r4648, r4649, r4650: memory leak with $geoip_org.Maxim Dounin1-4/+15
Patch by Denis F. Latypoff (slightly modified).
2012-06-04Merge of r4614, r4624-r4629, r4631: proxy recursive changes.Maxim Dounin1-30/+130
*) Added IPv6 and UNIX-domain socket support in "debug_connection" directive. *) New function ngx_http_get_forwarded_addr() to look up real client address. On input it takes an original address, string in the X-Forwarded-For format and its length, list of trusted proxies, and a flag indicating to perform the recursive search. On output it returns NGX_OK and the "deepest" valid address in a chain, or NGX_DECLINED. It supports AF_INET and AF_INET6. Additionally, original address and/or proxy may be specified as AF_UNIX. *) Realip: chains of trusted proxies and IPv6 support. The module now supports recursive search of client address through the chain of trusted proxies, controlled by the "real_ip_recursive" directive (closes #2). It also gets full IPv6 support (closes #44) and canonical value of the $client_addr variable on address change. Example: real_ip_header X-Forwarded-For; set_real_ip_from 127.0.0.0/8; set_real_ip_from ::1; set_real_ip_from unix:; real_ip_recursive on; *) Geo: chains of trusted proxies and partial IPv6 support. The module now supports recursive search of client address through the chain of trusted proxies, controlled by the "proxy_recursive" directive in the "geo" block. It also gets partial IPv6 support: now proxies may be specified with IPv6 addresses. Example: geo $test { ... proxy 127.0.0.1; proxy ::1; proxy_recursive; } There's also a slight change in behavior. When original client address (as specified by the "geo" directive) is one of the trusted proxies, and the value of the X-Forwarded-For request header cannot not be parsed as a valid address, an original client address will be used for lookup. Previously, 255.255.255.255 was used in this case. *) Geoip: trusted proxies support and partial IPv6 support. The module now supports recursive search of client address through the chain of trusted proxies (closes #100), in the same scope as the geo module. Proxies are listed by the "geoip_proxy" directive, recursive search is enabled by the "geoip_proxy_recursive" directive. IPv6 is partially supported: proxies may be specified with IPv6 addresses. Example: geoip_country .../GeoIP.dat; geoip_proxy 127.0.0.1; geoip_proxy ::1; geoip_proxy 10.0.0.0/8; geoip_proxy_recursive on;
2012-01-18Copyright updated.Maxim Konovalov1-0/+1
2011-05-16support IPv4 mapped to IPv6 in geoip moduleIgor Sysoev1-28/+42
2011-05-11geoip_orgIgor Sysoev1-0/+118
patch by Alexander Uskov
2011-05-11fix typoIgor Sysoev1-2/+2
2011-01-27utf8 parameter of geoip_country and geoip_cityIgor Sysoev1-2/+24
patch by Denis F. Latypoff
2010-08-03we can free GeoIPRecord just after GeoIP_region_name_by_code(),Igor Sysoev1-10/+4
because it returns a statically allocated string
2010-08-03fix segfault, the bug has been introduced in r3738Igor Sysoev1-0/+7
2010-08-03$geoip_region_nameIgor Sysoev1-0/+48
2010-08-03$geoip_dma_code and $geoip_area_codeIgor Sysoev1-0/+39
2009-12-22$geoip_city_continent_code, $geoip_latitude, $geoip_longitudeIgor Sysoev1-27/+79
2009-08-19fix memory leak if GeoIP City database was usedIgor Sysoev1-3/+19
2009-07-20ngx_http_geoip_moduleIgor Sysoev1-0/+360