This commit is contained in:
Fangliding
2026-10-31 19:18:23 +08:00
parent 7cea2b67a7
commit 90fc78ddda
4 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -555,9 +555,9 @@ func ListenXH(ctx context.Context, address net.Address, port net.Port, streamSet
handler.localAddr = l.listener.Addr()
var http2Config *http.HTTP2Config
if len(l.config.Http2) > 0 {
if len(l.config.H2Params) > 0 {
http2Config = new(http.HTTP2Config)
if err := json.Unmarshal(l.config.Http2, http2Config); err != nil {
if err := json.Unmarshal(l.config.H2Params, http2Config); err != nil {
return nil, errors.New("failed to parse HTTP2Config").Base(err)
}
}