From d56b84b7834c250ac2f7506517fe076b919841c0 Mon Sep 17 00:00:00 2001 From: Vladimir Homutov Date: Tue, 9 Jun 2015 13:00:45 +0300 Subject: Stream: added postconfiguration method to stream modules. --- src/stream/ngx_stream.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/stream/ngx_stream.c') 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; -- cgit