mirror of
https://github.com/nginx/nginx.git
synced 2026-08-27 04:07:18 +00:00
fix single address range
This commit is contained in:
parent
6ff8cda061
commit
53554ae54d
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue