mirror of
https://github.com/nginx/nginx.git
synced 2026-06-25 11:26:50 +00:00
fix range start for ranges those spread in two or more slots
This commit is contained in:
parent
91cf00da17
commit
f8fdbcaaa2
1 changed files with 6 additions and 1 deletions
|
|
@ -521,7 +521,12 @@ ngx_http_geo_add_range(ngx_conf_t *cf, ngx_http_geo_conf_ctx_t *ctx,
|
|||
for (n = start; n < end; n += 0x10000) {
|
||||
|
||||
h = n >> 16;
|
||||
s = n & 0xffff;
|
||||
|
||||
if (n == start) {
|
||||
s = n & 0xffff;
|
||||
} else {
|
||||
s = 0;
|
||||
}
|
||||
|
||||
if ((n | 0xffff) > end) {
|
||||
e = end & 0xffff;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue