# HG changeset patch # User Igor Sysoev # Date 1232120825 0 # Node ID bbec98632208ba8420674d4cbbefefa2df1cb7ac # Parent 3d868fc44879e0df77171ec540da5d65bb1488ad log both overrlaped ranges diff --git a/src/http/modules/ngx_http_geo_module.c b/src/http/modules/ngx_http_geo_module.c --- a/src/http/modules/ngx_http_geo_module.c +++ b/src/http/modules/ngx_http_geo_module.c @@ -624,8 +624,14 @@ ngx_http_geo_add_range(ngx_conf_t *cf, n goto next; } + s = (ngx_uint_t) range[i].start; + e = (ngx_uint_t) range[i].end; + ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, - "overlapped range \"%V\"", ctx->net); + "range \"%V\" overlaps \"%d.%d.%d.%d-%d.%d.%d.%d\"", + ctx->net, + h >> 8, h & 0xff, s >> 8, s & 0xff, + h >> 8, h & 0xff, e >> 8, e & 0xff); return NGX_CONF_ERROR; }