arthur-zhang commented on a change in pull request #5044:
URL: https://github.com/apache/apisix/pull/5044#discussion_r713542078



##########
File path: apisix/balancer.lua
##########
@@ -328,6 +328,12 @@ function _M.run(route, ctx, plugin_funcs)
         end
     end
 
+    -- scheme is http_auto, need dynamic get port
+    local scheme = ctx.matched_upstream.scheme  or "http"
+    if scheme == "http_auto" and (server.port == 80 and server.prot == 443) 
then

Review comment:
       prot ?
   
   is it should be `server.port == 80 or server.port == 443`




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