mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-15 15:58:41 +00:00
XHTTP client: Set packet-up as the default mode
(auto) when using TLS
https://t.me/projectXtls/929
This commit is contained in:
parent
2916b1b977
commit
0995fa41fe
1 changed files with 4 additions and 4 deletions
|
@ -281,11 +281,11 @@ func Dial(ctx context.Context, dest net.Destination, streamSettings *internet.Me
|
||||||
mode := transportConfiguration.Mode
|
mode := transportConfiguration.Mode
|
||||||
if mode == "" || mode == "auto" {
|
if mode == "" || mode == "auto" {
|
||||||
mode = "packet-up"
|
mode = "packet-up"
|
||||||
if httpVersion == "2" {
|
if realityConfig != nil {
|
||||||
mode = "stream-up"
|
|
||||||
}
|
|
||||||
if realityConfig != nil && transportConfiguration.DownloadSettings == nil {
|
|
||||||
mode = "stream-one"
|
mode = "stream-one"
|
||||||
|
if transportConfiguration.DownloadSettings != nil {
|
||||||
|
mode = "stream-up"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue