From ccdd67ab0944a7506233f48557c28d7b9e5972c3 Mon Sep 17 00:00:00 2001 From: Haruue Date: Mon, 29 Apr 2024 11:34:10 +0800 Subject: [PATCH] chore: disable datagrams in http3 config --- core/client/client.go | 1 - core/server/server.go | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/core/client/client.go b/core/client/client.go index 4212820..5a25d37 100644 --- a/core/client/client.go +++ b/core/client/client.go @@ -87,7 +87,6 @@ func (c *clientImpl) connect() (*HandshakeInfo, error) { // Prepare RoundTripper var conn quic.EarlyConnection rt := &http3.RoundTripper{ - EnableDatagrams: true, TLSClientConfig: tlsConfig, QUICConfig: quicConfig, Dial: func(ctx context.Context, _ string, tlsCfg *tls.Config, cfg *quic.Config) (quic.EarlyConnection, error) { diff --git a/core/server/server.go b/core/server/server.go index 3d0aebe..78ab531 100644 --- a/core/server/server.go +++ b/core/server/server.go @@ -77,9 +77,8 @@ func (s *serverImpl) Close() error { func (s *serverImpl) handleClient(conn quic.Connection) { handler := newH3sHandler(s.config, conn) h3s := http3.Server{ - EnableDatagrams: true, - Handler: handler, - StreamHijacker: handler.ProxyStreamHijacker, + Handler: handler, + StreamHijacker: handler.ProxyStreamHijacker, } err := h3s.ServeQUICConn(conn) // If the client is authenticated, we need to log the disconnect event