diff options
author | Vladimir Homutov <vl@nginx.com> | 2015-06-09 13:00:45 +0300 |
---|---|---|
committer | Vladimir Homutov <vl@nginx.com> | 2015-06-09 13:00:45 +0300 |
commit | d56b84b7834c250ac2f7506517fe076b919841c0 (patch) | |
tree | 8b13adc1073db325b57950002672469b7210805a /src/stream/ngx_stream.c | |
parent | c81d7ec1588a68602fbd26d4f92c6287c3e56b44 (diff) | |
download | nginx-d56b84b7834c250ac2f7506517fe076b919841c0.tar.gz nginx-d56b84b7834c250ac2f7506517fe076b919841c0.zip |
Stream: added postconfiguration method to stream modules.
Diffstat (limited to 'src/stream/ngx_stream.c')
-rw-r--r-- | src/stream/ngx_stream.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/stream/ngx_stream.c b/src/stream/ngx_stream.c index 83b1c345b..3dce35ab7 100644 --- a/src/stream/ngx_stream.c +++ b/src/stream/ngx_stream.c @@ -204,6 +204,20 @@ ngx_stream_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) } } + for (m = 0; ngx_modules[m]; m++) { + if (ngx_modules[m]->type != NGX_STREAM_MODULE) { + continue; + } + + module = ngx_modules[m]->ctx; + + if (module->postconfiguration) { + if (module->postconfiguration(cf) != NGX_OK) { + return NGX_CONF_ERROR; + } + } + } + *cf = pcf; |