diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-12-03 10:05:19 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-12-03 10:05:19 +0000 |
| commit | 6b2fce430b4cdb063b5b4e5382515d384c90272b (patch) | |
| tree | b96e96db97ccb66acfc5aba3a4e1734df1c0b39d /src/http/ngx_http_core_module.c | |
| parent | 26aae392f9fd35c840bf8e400b7f4defacf181ab (diff) | |
| download | nginx-6b2fce430b4cdb063b5b4e5382515d384c90272b.tar.gz nginx-6b2fce430b4cdb063b5b4e5382515d384c90272b.tar.bz2 | |
allow to use IP addresses without defined resolver
Diffstat (limited to 'src/http/ngx_http_core_module.c')
| -rw-r--r-- | src/http/ngx_http_core_module.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index fea5cb5b5..b882f1c2f 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -2594,6 +2594,13 @@ ngx_http_core_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child) if (conf->resolver == NULL) { conf->resolver = prev->resolver; + + if (conf->resolver == NULL) { + conf->resolver = ngx_resolver_create(NULL, cf->cycle->new_log); + if (conf->resolver == NULL) { + return NGX_OK; + } + } } ngx_conf_merge_path_value(conf->client_body_temp_path, |
