Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-01-16 18:47:05 +0300
committerIgor Sysoev <igor@sysoev.ru>2009-01-16 18:47:05 +0300
commit287c22f788d6f451500c3e19214d25431cd88ac9 (patch)
tree9d217af9820398331d1b4c21921fd69ff3bfb247 /src/http/modules/ngx_http_geo_module.c
parentf8fdbcaaa256a061d1561691e0bdec203fce259f (diff)
log both overrlaped ranges
Diffstat (limited to 'src/http/modules/ngx_http_geo_module.c')
-rw-r--r--src/http/modules/ngx_http_geo_module.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_geo_module.c b/src/http/modules/ngx_http_geo_module.c
index 2ada4c85d..cbf67c2dc 100644
--- 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, ngx_http_geo_conf_ctx_t *ctx,
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;
}