mirror of
https://github.com/apernet/hysteria.git
synced 2025-04-02 03:57:38 +03:00
chore: disable datagrams in http3 config
This commit is contained in:
parent
d2805577ff
commit
ccdd67ab09
2 changed files with 2 additions and 4 deletions
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue