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:
RPRX 2024-11-21 05:45:49 +00:00 committed by GitHub
parent 0a252ac15d
commit 817fa72874
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 62 additions and 41 deletions

View file

@ -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 {