mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 09:18:34 +00:00
Add Authority to gRPC Transport (#3076)
Why couldn't you have Host, for the last three years?
This commit is contained in:
parent
aa101d9dc2
commit
7184a8165f
4 changed files with 57 additions and 43 deletions
|
@ -6,7 +6,8 @@ import (
|
|||
)
|
||||
|
||||
type GRPCConfig struct {
|
||||
ServiceName string `json:"serviceName" `
|
||||
Authority string `json:"authority"`
|
||||
ServiceName string `json:"serviceName"`
|
||||
MultiMode bool `json:"multiMode"`
|
||||
IdleTimeout int32 `json:"idle_timeout"`
|
||||
HealthCheckTimeout int32 `json:"health_check_timeout"`
|
||||
|
@ -28,6 +29,7 @@ func (g *GRPCConfig) Build() (proto.Message, error) {
|
|||
}
|
||||
|
||||
return &grpc.Config{
|
||||
Authority: g.Authority,
|
||||
ServiceName: g.ServiceName,
|
||||
MultiMode: g.MultiMode,
|
||||
IdleTimeout: g.IdleTimeout,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue