Skip to content

Commit

Permalink
Allow connect on Http2ProtocolOptions when Websockets are enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Rajat Vig <[email protected]>
  • Loading branch information
rajatvig committed Jan 12, 2025
1 parent 6f6c0f4 commit 45da937
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/6845-rvig-small.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Set `allow_connect` to true on `Http2ProtocolOptions` on the Listener when websockets are enabled.
1 change: 1 addition & 0 deletions internal/envoy/v3/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ func (b *httpConnectionManagerBuilder) Get() *envoy_config_listener_v3.Filter {
UpgradeType: "websocket",
},
)
cm.Http2ProtocolOptions.AllowConnect = true
}

return &envoy_config_listener_v3.Filter{
Expand Down

0 comments on commit 45da937

Please sign in to comment.