Solved conflict on H2 upstream and Websocket, better gRPC ping

This commit is contained in:
Ara Sadoyan
2026-07-24 12:27:12 +02:00
parent 430f867792
commit 3ae54185ad
6 changed files with 131 additions and 117 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ impl ProxyHttp for LB {
Some(hostname) => match ctx.upstream_peer.as_ref() {
Some(innermap) => {
let mut peer = Box::new(HttpPeer::new((&*innermap.address, innermap.port), innermap.is_ssl, hostname.to_string()));
if innermap.is_http2 {
if innermap.is_http2 && !session.is_upgrade_req() {
peer.options.alpn = ALPN::H2;
}
if innermap.is_ssl {