Mercurial > hg > nginx-quic
changeset 3456:91cff7f97a50
fix a geo range if the range includes two or more /16 networks
and does not begin at /16 network boundary
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 25 Feb 2010 17:26:01 +0000 |
parents | 028f0892e0cd |
children | 17706823a57e |
files | src/http/modules/ngx_http_geo_module.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_geo_module.c +++ b/src/http/modules/ngx_http_geo_module.c @@ -589,7 +589,7 @@ ngx_http_geo_add_range(ngx_conf_t *cf, n ngx_array_t *a; ngx_http_geo_range_t *range; - for (n = start; n <= end; n += 0x10000) { + for (n = start; n <= end; n = (n + 0x10000) & 0xffff0000) { h = n >> 16;