mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-02 17:38:41 +00:00
Add grpc multi conn
This commit is contained in:
parent
ae62a0fb52
commit
a7e12176fb
4 changed files with 85 additions and 11 deletions
|
@ -14,6 +14,7 @@ type GRPCConfig struct {
|
|||
PermitWithoutStream bool `json:"permit_without_stream"`
|
||||
InitialWindowsSize int32 `json:"initial_windows_size"`
|
||||
UserAgent string `json:"user_agent"`
|
||||
MultiConnections int32 `json:"multi_connections"`
|
||||
}
|
||||
|
||||
func (g *GRPCConfig) Build() (proto.Message, error) {
|
||||
|
@ -37,5 +38,6 @@ func (g *GRPCConfig) Build() (proto.Message, error) {
|
|||
PermitWithoutStream: g.PermitWithoutStream,
|
||||
InitialWindowsSize: g.InitialWindowsSize,
|
||||
UserAgent: g.UserAgent,
|
||||
MultiConnections: g.MultiConnections,
|
||||
}, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue