You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/02/09 09:32:07 UTC

[GitHub] [incubator-apisix] moonming commented on a change in pull request #1113: Feature: Add support for PROXY Protocol.

moonming commented on a change in pull request #1113: Feature: Add support for PROXY Protocol.
URL: https://github.com/apache/incubator-apisix/pull/1113#discussion_r376768509
 
 

 ##########
 File path: bin/apisix
 ##########
 @@ -200,10 +204,14 @@ http {
 
     include mime.types;
 
-    real_ip_header {* real_ip_header *};
-    {% for _, real_ip in ipairs(real_ip_from) do %}
+    {% if http.real_ip_header then %}
 
 Review comment:
   Is this a modification that is not backward compatible?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services