# HG changeset patch # User Yaroslav Zhuravlev # Date 1612367141 0 # Node ID 7517de030c0aee7b10fc04ad6d6149ec0ac6cf8e # Parent 78161967514f6bb375906665caf9daf35065fb9a Corrected njs example in ngx_stream_js_module module. diff --git a/xml/en/docs/stream/ngx_stream_js_module.xml b/xml/en/docs/stream/ngx_stream_js_module.xml --- a/xml/en/docs/stream/ngx_stream_js_module.xml +++ b/xml/en/docs/stream/ngx_stream_js_module.xml @@ -9,7 +9,7 @@ + rev="23">
@@ -113,7 +113,7 @@ function header_inject(s) { function access(s) { if (s.remoteAddress.match('^192.*')) { - s.abort(); + s.deny(); return; } diff --git a/xml/ru/docs/stream/ngx_stream_js_module.xml b/xml/ru/docs/stream/ngx_stream_js_module.xml --- a/xml/ru/docs/stream/ngx_stream_js_module.xml +++ b/xml/ru/docs/stream/ngx_stream_js_module.xml @@ -9,7 +9,7 @@ + rev="23">
@@ -113,7 +113,7 @@ function header_inject(s) { function access(s) { if (s.remoteAddress.match('^192.*')) { - s.abort(); + s.deny(); return; }