mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 09:18:34 +00:00
XHTTP config: Add keepAlivePeriod
for client (#4075)
Closes https://github.com/XTLS/Xray-core/issues/4053 --------- Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
This commit is contained in:
parent
f7bd98b13c
commit
c87cf8ff52
4 changed files with 73 additions and 46 deletions
|
@ -236,6 +236,7 @@ type SplitHTTPConfig struct {
|
|||
Mode string `json:"mode"`
|
||||
Extra json.RawMessage `json:"extra"`
|
||||
NoGRPCHeader bool `json:"noGRPCHeader"`
|
||||
KeepAlivePeriod int64 `json:"keepAlivePeriod"`
|
||||
}
|
||||
|
||||
type Xmux struct {
|
||||
|
@ -324,6 +325,7 @@ func (c *SplitHTTPConfig) Build() (proto.Message, error) {
|
|||
Xmux: &muxProtobuf,
|
||||
Mode: c.Mode,
|
||||
NoGRPCHeader: c.NoGRPCHeader,
|
||||
KeepAlivePeriod: c.KeepAlivePeriod,
|
||||
}
|
||||
var err error
|
||||
if c.DownloadSettings != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue