mirror of
https://github.com/status-im/consul.git
synced 2025-01-25 13:10:32 +00:00
Enable http2 options for grpc protocol
This commit is contained in:
parent
608d0fe2c1
commit
7162e3bde2
@ -426,7 +426,7 @@ func (s *ResourceGenerator) makeGatewayServiceClusters(
|
|||||||
clusters = append(clusters, cluster)
|
clusters = append(clusters, cluster)
|
||||||
|
|
||||||
gatewaySvc, ok := cfgSnap.TerminatingGateway.GatewayServices[svc]
|
gatewaySvc, ok := cfgSnap.TerminatingGateway.GatewayServices[svc]
|
||||||
isHTTP2 := ok && gatewaySvc.Protocol == "http2"
|
isHTTP2 := ok && (gatewaySvc.Protocol == "http2" || gatewaySvc.Protocol == "grpc")
|
||||||
if isHTTP2 {
|
if isHTTP2 {
|
||||||
if err := s.setHttp2ProtocolOptions(cluster); err != nil {
|
if err := s.setHttp2ProtocolOptions(cluster); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user