From c31773ea60c62efb558d89aa6c8abd44b2779a36 Mon Sep 17 00:00:00 2001 From: Vladimir Homutov Date: Mon, 4 Jul 2016 16:37:36 +0300 Subject: Stream: variables and script. This is a port of corresponding http code with unrelated features excluded. --- src/stream/ngx_stream.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/stream/ngx_stream.c') diff --git a/src/stream/ngx_stream.c b/src/stream/ngx_stream.c index ea731458e..c19517120 100644 --- a/src/stream/ngx_stream.c +++ b/src/stream/ngx_stream.c @@ -230,6 +230,10 @@ ngx_stream_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) } } + if (ngx_stream_variables_init_vars(cf) != NGX_OK) { + return NGX_CONF_ERROR; + } + *cf = pcf; -- cgit