leslie-tsang commented on issue #6017:
URL: https://github.com/apache/apisix/issues/6017#issuecomment-1005403472


   ```patch
   diff --git a/apisix/cli/ngx_tpl.lua b/apisix/cli/ngx_tpl.lua
   index b3fd0d6e..9655723b 100644
   --- a/apisix/cli/ngx_tpl.lua
   +++ b/apisix/cli/ngx_tpl.lua
   @@ -248,7 +248,7 @@ http {
    
        lua_socket_log_errors off;
    
   -    resolver {% for _, dns_addr in ipairs(dns_resolver or {}) do %} 
{*dns_addr*} {% end %} {% if dns_resolver_valid then %} 
valid={*dns_resolver_valid*}{% end %};
   +    resolver {% for _, dns_addr in ipairs(dns_resolver or {}) do %} 
{*dns_addr*} {% end %} {% if dns_resolver_valid then %} 
valid={*dns_resolver_valid*}{% end %} ipv6={% if enable_ipv6 then %}on{% else 
%}off{% end %};
        resolver_timeout {*resolver_timeout*};
    
        lua_http10_buffering off;
   ```
   Might this solve the problem ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to