From aae581200460010eef8bbc944fba6d32af6c1614 Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Sat, 9 May 2026 11:19:34 +0800 Subject: [PATCH] fix: net/http.Server's UnencryptedHTTP2 does not work TLS without ALPN --- go.mod | 2 +- go.sum | 4 ++-- listener/inbound/trusttunnel_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index bda8b7c38..a6d47454f 100644 --- a/go.mod +++ b/go.mod @@ -21,7 +21,7 @@ require ( github.com/metacubex/edwards25519 v1.2.0 github.com/metacubex/fswatch v0.1.1 github.com/metacubex/gopacket v1.1.20-0.20230608035415-7e2f98a3e759 - github.com/metacubex/http v0.1.4 + github.com/metacubex/http v0.1.5 github.com/metacubex/kcp-go v0.0.0-20260105040817-550693377604 github.com/metacubex/mhurl v0.1.0 github.com/metacubex/mlkem v0.1.0 diff --git a/go.sum b/go.sum index ddd9f6192..63c66fdb6 100644 --- a/go.sum +++ b/go.sum @@ -103,8 +103,8 @@ github.com/metacubex/hkdf v0.1.0 h1:fPA6VzXK8cU1foc/TOmGCDmSa7pZbxlnqhl3RNsthaA= github.com/metacubex/hkdf v0.1.0/go.mod h1:3seEfds3smgTAXqUGn+tgEJH3uXdsUjOiduG/2EtvZ4= github.com/metacubex/hpke v0.1.0 h1:gu2jUNhraehWi0P/z5HX2md3d7L1FhPQE6/Q0E9r9xQ= github.com/metacubex/hpke v0.1.0/go.mod h1:vfDm6gfgrwlXUxKDkWbcE44hXtmc1uxLDm2BcR11b3U= -github.com/metacubex/http v0.1.4 h1:gU1y8WlqslzxGmedW2ah74fGL6wJYU2HXUkCMJtCa2A= -github.com/metacubex/http v0.1.4/go.mod h1:Nxx0zZAo2AhRfanyL+fmmK6ACMtVsfpwIl1aFAik2Eg= +github.com/metacubex/http v0.1.5 h1:p3yrbbaSnimh1jlm0IapcSTjzD7jxvjYp8n+uN2tQgo= +github.com/metacubex/http v0.1.5/go.mod h1:Nxx0zZAo2AhRfanyL+fmmK6ACMtVsfpwIl1aFAik2Eg= github.com/metacubex/kcp-go v0.0.0-20260105040817-550693377604 h1:hJwCVlE3ojViC35MGHB+FBr8TuIf3BUFn2EQ1VIamsI= github.com/metacubex/kcp-go v0.0.0-20260105040817-550693377604/go.mod h1:lpmN3m269b3V5jFCWtffqBLS4U3QQoIid9ugtO+OhVc= github.com/metacubex/mhurl v0.1.0 h1:ZdW4Zxe3j3uJ89gNytOazHu6kbHn5owutN/VfXOI8GE= diff --git a/listener/inbound/trusttunnel_test.go b/listener/inbound/trusttunnel_test.go index 4c6c3cdd3..5573e6fee 100644 --- a/listener/inbound/trusttunnel_test.go +++ b/listener/inbound/trusttunnel_test.go @@ -102,7 +102,7 @@ func testInboundTrustTunnelTLS(t *testing.T, quic bool) { } func TestInboundTrustTunnel_H2(t *testing.T) { - testInboundTrustTunnelTLS(t, true) + testInboundTrustTunnelTLS(t, false) } func TestInboundTrustTunnel_QUIC(t *testing.T) {