Mercurial > hg > nginx
comparison src/http/modules/ngx_http_geo_module.c @ 2448:bbec98632208
log both overrlaped ranges
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 16 Jan 2009 15:47:05 +0000 |
parents | 3d868fc44879 |
children | 450a277dad48 |
comparison
equal
deleted
inserted
replaced
2447:3d868fc44879 | 2448:bbec98632208 |
---|---|
622 range[i + 1].value = ctx->value; | 622 range[i + 1].value = ctx->value; |
623 | 623 |
624 goto next; | 624 goto next; |
625 } | 625 } |
626 | 626 |
627 s = (ngx_uint_t) range[i].start; | |
628 e = (ngx_uint_t) range[i].end; | |
629 | |
627 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | 630 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, |
628 "overlapped range \"%V\"", ctx->net); | 631 "range \"%V\" overlaps \"%d.%d.%d.%d-%d.%d.%d.%d\"", |
632 ctx->net, | |
633 h >> 8, h & 0xff, s >> 8, s & 0xff, | |
634 h >> 8, h & 0xff, e >> 8, e & 0xff); | |
629 | 635 |
630 return NGX_CONF_ERROR; | 636 return NGX_CONF_ERROR; |
631 } | 637 } |
632 | 638 |
633 /* add the first range */ | 639 /* add the first range */ |