mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-08-07 14:25:17 +03:00
Fix naive HTTP/2 connections
This commit is contained in:
@@ -221,7 +221,7 @@ func (n *Inbound) newConnection(ctx context.Context, waitForClose bool, conn net
|
|||||||
} else {
|
} else {
|
||||||
done := make(chan struct{})
|
done := make(chan struct{})
|
||||||
wrapper := v2rayhttp.NewHTTP2Wrapper(conn)
|
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)
|
close(done)
|
||||||
}))
|
}))
|
||||||
<-done
|
<-done
|
||||||
|
|||||||
Reference in New Issue
Block a user