mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-02 11:26:47 +00:00
fix: correctly configure the HTTP/2 scheduled ping parameters in masque h2 mode
This commit is contained in:
1 parent
b03aa5d570
commit
7a646e8d10
1 file changed
+4
-2
@@ -180,8 +180,10 @@ func NewMasque(option MasqueOption) (*Masque, error) {
|
||||
type netConn struct{ net.Conn } // hide tls-type to skip ALPN check and force enter h2 mode
|
||||
return netConn{tlsConn}, nil
|
||||
},
|
||||
Protocols: protocols,
|
||||
IdleConnTimeout: 30 * time.Second,
|
||||
Protocols: protocols,
|
||||
HTTP2: &http.HTTP2Config{
|
||||
SendPingTimeout: 30 * time.Second,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user