mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-01 01:44:15 +00:00
grpc: add initial_windows_size option
This commit is contained in:
parent
3057a7c999
commit
63da3a5481
4 changed files with 29 additions and 6 deletions
|
@ -135,6 +135,10 @@ func getGrpcClient(ctx context.Context, dest net.Destination, streamSettings *in
|
|||
}))
|
||||
}
|
||||
|
||||
if grpcSettings.InitialWindowsSize > 0 {
|
||||
dialOptions = append(dialOptions, grpc.WithInitialWindowSize(grpcSettings.InitialWindowsSize))
|
||||
}
|
||||
|
||||
var grpcDestHost string
|
||||
if dest.Address.Family().IsDomain() {
|
||||
grpcDestHost = dest.Address.Domain()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue