kayx23 opened a new issue, #9626:
URL: https://github.com/apache/apisix/issues/9626

   ### Description
   
   ## How this variable is used
   
   In `ngx_tpl.lua`: 
   
   ```
   {% if proxy_protocol and proxy_protocol.enable_tcp_pp_to_upstream then %}
   proxy_protocol on;
   {% end %}
   ```
   
   ## Question
   
   Why is `enable_tcp_pp_to_upstream` needed at all? Why not just check if 
`proxy_protocol` and at least a listening port is set, such as:
   ```
   {% if proxy_protocol and (proxy_protocol.listen_http_port or  
proxy_protocol.listen_https_port or proxy_protocol.enable_tcp_pp) then %}
   proxy_protocol on;
   {% end %}
   ```
   
   ### Environment
   
   current version: 3.2.1


-- 
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