From 3c4a5a6ed3bbc6b41013f6950e140eca7f32f5cf Mon Sep 17 00:00:00 2001 From: H-TTTTT <36735327+H-TTTTT@users.noreply.github.com> Date: Tue, 21 Jul 2026 14:29:32 +0800 Subject: [PATCH] Fix naive HTTP/2 connections --- protocol/naive/inbound.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/naive/inbound.go b/protocol/naive/inbound.go index c9d6a1ae..a70ff5bc 100644 --- a/protocol/naive/inbound.go +++ b/protocol/naive/inbound.go @@ -221,7 +221,7 @@ func (n *Inbound) newConnection(ctx context.Context, waitForClose bool, conn net } else { done := make(chan struct{}) wrapper := v2rayhttp.NewHTTP2Wrapper(conn) - n.router.RouteConnectionEx(ctx, conn, metadata, N.OnceClose(func(it error) { + n.router.RouteConnectionEx(ctx, wrapper, metadata, N.OnceClose(func(it error) { close(done) })) <-done