]> git.kaiwu.me - nginx.git/commit
Merge of r4968, r4969, r4977, r4980, r4981, r4990: geo fixes.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 11 Feb 2013 12:26:33 +0000 (12:26 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 11 Feb 2013 12:26:33 +0000 (12:26 +0000)
commit20951d0eae32084b35ded4013b10ee80b1882c63
tree762ce8591108a0cf9cb82c26c9c74c0f1edd6aa2
parentb217a2a46705b3fc6eb939fe112e5145ae263135
Merge of r4968, r4969, r4977, r4980, r4981, r4990: geo fixes.

*) Geo: improved ngx_http_geo_block() code readability.

*) Geo: fixed the "ranges" without ranges case.  The following
   configuration returned an empty value for $geo:

       geo $geo {
           ranges;
           default default;
       }

*) Fixed return type of internal function that allocates radix tree nodes.

*) There's no need to normalize address returned by ngx_ptocidr().

*) Geo: ensure that default entry is always present.  If 0.0.0.0/32 entry
   was present and there was no explicit "default", we failed to add an
   empty string as a default value.

*) Trailing whitespace fix.
src/core/ngx_radix_tree.c
src/http/modules/ngx_http_geo_module.c