membphis commented on code in PR #10989:
URL: https://github.com/apache/apisix/pull/10989#discussion_r1512005544


##########
conf/config-default.yaml:
##########
@@ -97,9 +97,11 @@ apisix:
     listen:                                       # APISIX listening port for 
HTTPS traffic.
       - port: 9443
         enable_http2: true
+        enable_quic: false

Review Comment:
   1. need some comments
   2.
   <img width="622" alt="image" 
src="https://github.com/apache/apisix/assets/6814606/a0e642bd-6b9e-4732-acfc-6589caee344d";>
   



##########
apisix/init.lua:
##########
@@ -576,6 +576,13 @@ end
 
 
 function _M.http_access_phase()
+    if ngx.req.http_version() == 3 then
+        local upstream_host = ngx.var.host
+        if ngx.var.server_port then
+            upstream_host = upstream_host .. ":" .. ngx.var.server_port
+        end
+        ngx.var.upstream_host = upstream_host
+    end

Review Comment:
   @zll600 do you need to update this way?
   
   <img width="625" alt="image" 
src="https://github.com/apache/apisix/assets/6814606/9ee954e9-ddbd-42f7-b337-044bc776d205";>
   



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