]> git.kaiwu.me - nginx.git/commitdiff
fix single address range
authorIgor Sysoev <igor@sysoev.ru>
Fri, 16 Jan 2009 16:09:58 +0000 (16:09 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 16 Jan 2009 16:09:58 +0000 (16:09 +0000)
src/http/modules/ngx_http_geo_module.c

index 0b20b30929749f5e3f9c83a8e45ef27e300f53c7..003f02c6b08a624cc67a0ba28cde56d5712e19f8 100644 (file)
@@ -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;