mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 09:18:34 +00:00
XHTTP client: Add gRPC header to "stream-up" mode by default (#4042)
""Breaking"": Client uses "stream-up" mode by default when using **TLS H2** or REALITY
This commit is contained in:
parent
0a252ac15d
commit
817fa72874
5 changed files with 62 additions and 41 deletions
|
@ -235,6 +235,7 @@ type SplitHTTPConfig struct {
|
|||
DownloadSettings *StreamConfig `json:"downloadSettings"`
|
||||
Mode string `json:"mode"`
|
||||
Extra json.RawMessage `json:"extra"`
|
||||
NoGRPCHeader bool `json:"noGRPCHeader"`
|
||||
}
|
||||
|
||||
type Xmux struct {
|
||||
|
@ -322,6 +323,7 @@ func (c *SplitHTTPConfig) Build() (proto.Message, error) {
|
|||
XPaddingBytes: splithttpNewRandRangeConfig(c.XPaddingBytes),
|
||||
Xmux: &muxProtobuf,
|
||||
Mode: c.Mode,
|
||||
NoGRPCHeader: c.NoGRPCHeader,
|
||||
}
|
||||
var err error
|
||||
if c.DownloadSettings != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue