chore: disable datagrams in http3 config

This commit is contained in:
Haruue 2024-04-29 11:34:10 +08:00
parent d2805577ff
commit ccdd67ab09
No known key found for this signature in database
GPG key ID: F6083B28CBCBC148
2 changed files with 2 additions and 4 deletions

View file

@ -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) {

View file

@ -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