Skip to content

Commit 0995fa4

Browse files
authored
XHTTP client: Set packet-up as the default mode (auto) when using TLS
https://t.me/projectXtls/929
1 parent 2916b1b commit 0995fa4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

transport/internet/splithttp/dialer.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,11 @@ func Dial(ctx context.Context, dest net.Destination, streamSettings *internet.Me
281281
mode := transportConfiguration.Mode
282282
if mode == "" || mode == "auto" {
283283
mode = "packet-up"
284-
if httpVersion == "2" {
285-
mode = "stream-up"
286-
}
287-
if realityConfig != nil && transportConfiguration.DownloadSettings == nil {
284+
if realityConfig != nil {
288285
mode = "stream-one"
286+
if transportConfiguration.DownloadSettings != nil {
287+
mode = "stream-up"
288+
}
289289
}
290290
}
291291

0 commit comments

Comments
 (0)