fix: panic in vless xhttp h3 mode when quic dial fails (#2736)

This commit is contained in:
beck
2026-04-20 14:26:16 +08:00
committed by GitHub
parent 80e23d5acd
commit b3104a527d
+6
View File
@@ -636,6 +636,9 @@ func NewVless(option VlessOption) (*Vless, error) {
return nil, err
}
_, quicConn, err := common.DialQuic(ctx, v.addr, v.DialOptions(), v.dialer, tlsConfig, cfg, true)
if err != nil {
return nil, err
}
return quicConn, nil
},
v.option.ALPN,
@@ -790,6 +793,9 @@ func NewVless(option VlessOption) (*Vless, error) {
return nil, err
}
_, quicConn, err := common.DialQuic(ctx, downloadAddr, v.DialOptions(), v.dialer, tlsConfig, cfg, true)
if err != nil {
return nil, err
}
return quicConn, nil
},
downloadALPN,