Yichun Zhang
7b24c53efe
GeoIP: not all variable fields were initialized.
...
The ngx_http_geoip_city_float_variable and
ngx_http_geoip_city_int_variable functions did not always initialize
all variable fields like "not_found", which could lead to empty values
for those corresponding nginx variables randomly.
2014-07-25 14:43:29 -07:00
Piotr Sikora
2cfcef5b42
Style: remove whitespace between function name and parentheses.
...
Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
2014-07-08 03:03:14 -07:00
Ruslan Ermilov
67a68720b7
Correctly handle multiple X-Forwarded-For headers (ticket #106 ).
2013-02-27 13:29:50 +00:00
Ruslan Ermilov
75e5d13ec6
GeoIP: removed pseudo-support of "proxy" and "netspeed" databases.
2013-02-04 16:44:22 +00:00
Ruslan Ermilov
db5e48d9b8
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 ).
2013-01-24 16:15:51 +00:00
Ruslan Ermilov
d469482cda
Fixed strict aliasing bugs when dealing with IPv4-mapped IPv6 addresses
...
(closes #201 ).
2012-08-30 14:58:11 +00:00
Ruslan Ermilov
94d8df6098
geoip: got rid of ugly casts when calling ngx_free().
...
This is done by removing the "const" qualifier from the common return
type of handler functions returning either "const char *" or "char *".
2012-05-29 09:19:51 +00:00
Ruslan Ermilov
49fbd88466
Fixed broken build.
2012-05-28 14:20:04 +00:00
Ruslan Ermilov
9fbd0d7c1d
Fixed memory leak if $geoip_org variable was used.
...
Patch by Denis F. Latypoff (slightly modified).
2012-05-28 13:17:48 +00:00
Ruslan Ermilov
d4ba06c31a
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-05-14 14:00:17 +00:00
Maxim Konovalov
f8d59e33f3
Copyright updated.
2012-01-18 15:07:43 +00:00
Igor Sysoev
dd39f60014
support IPv4 mapped to IPv6 in geoip module
2011-05-16 13:50:58 +00:00
Igor Sysoev
50733a53ec
geoip_org
...
patch by Alexander Uskov
2011-05-11 09:34:21 +00:00
Igor Sysoev
20b52bec63
fix typo
2011-05-11 09:25:37 +00:00
Igor Sysoev
eb1a344dd3
utf8 parameter of geoip_country and geoip_city
...
patch by Denis F. Latypoff
2011-01-27 12:51:59 +00:00
Igor Sysoev
541d8c698a
we can free GeoIPRecord just after GeoIP_region_name_by_code(),
...
because it returns a statically allocated string
2010-08-03 18:38:08 +00:00
Igor Sysoev
a999586594
fix segfault, the bug has been introduced in r3738
2010-08-03 18:27:56 +00:00
Igor Sysoev
395f35e5fa
$geoip_region_name
2010-08-03 15:01:34 +00:00
Igor Sysoev
dc87ab5a69
$geoip_dma_code and $geoip_area_code
2010-08-03 14:19:49 +00:00
Igor Sysoev
d741a7f827
$geoip_city_continent_code, $geoip_latitude, $geoip_longitude
2009-12-22 17:33:03 +00:00
Igor Sysoev
0f00b0a801
fix memory leak if GeoIP City database was used
2009-08-19 17:44:33 +00:00
Igor Sysoev
bc10147b9f
ngx_http_geoip_module
2009-07-20 07:10:43 +00:00