mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-07-04 10:48:49 +00:00
Use hKeepAlivePeriod for xhttp3 if not specified in quicParams
This commit is contained in:
@@ -183,6 +183,8 @@ func createHTTPClient(dest net.Destination, streamSettings *internet.MemoryStrea
|
|||||||
if quicParams.KeepAlivePeriod == 0 {
|
if quicParams.KeepAlivePeriod == 0 {
|
||||||
if keepAlivePeriod == 0 {
|
if keepAlivePeriod == 0 {
|
||||||
quicConfig.KeepAlivePeriod = net.QuicgoH3KeepAlivePeriod
|
quicConfig.KeepAlivePeriod = net.QuicgoH3KeepAlivePeriod
|
||||||
|
} else if keepAlivePeriod > 0 {
|
||||||
|
quicConfig.KeepAlivePeriod = keepAlivePeriod
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if quicParams.MaxIncomingStreams == 0 {
|
if quicParams.MaxIncomingStreams == 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user