diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-01-16 16:09:58 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-01-16 16:09:58 +0000 |
| commit | 53554ae54d4f32ba4e05d815692e0a8b8c202d9e (patch) | |
| tree | 47079f547e6ab8014f563db900a941cf2bc5c819 | |
| parent | 6ff8cda061d9a33da61ee733f1586813b7c1c779 (diff) | |
| download | nginx-53554ae54d4f32ba4e05d815692e0a8b8c202d9e.tar.gz nginx-53554ae54d4f32ba4e05d815692e0a8b8c202d9e.tar.bz2 | |
fix single address range
| -rw-r--r-- | src/http/modules/ngx_http_geo_module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_geo_module.c b/src/http/modules/ngx_http_geo_module.c index 0b20b3092..003f02c6b 100644 --- a/src/http/modules/ngx_http_geo_module.c +++ b/src/http/modules/ngx_http_geo_module.c @@ -518,7 +518,7 @@ ngx_http_geo_add_range(ngx_conf_t *cf, ngx_http_geo_conf_ctx_t *ctx, ngx_array_t *a; ngx_http_geo_range_t *range; - for (n = start; n < end; n += 0x10000) { + for (n = start; n <= end; n += 0x10000) { h = n >> 16; @@ -667,7 +667,7 @@ ngx_http_geo_delete_range(ngx_conf_t *cf, ngx_http_geo_conf_ctx_t *ctx, warn = 0; - for (n = start; n < end; n += 0x10000) { + for (n = start; n <= end; n += 0x10000) { h = n >> 16; |
