mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 13:26:07 +00:00
fix(peering): add missing grpc_tls_port for server address reconciliation (#14944)
This commit is contained in:
parent
2bb2846790
commit
e0356e1502
@ -310,6 +310,14 @@ func (r *ReadyServersEventPublisher) getGRPCPort(srv *autopilot.ServerState) int
|
||||
if err != nil || ns == nil || ns.Meta == nil {
|
||||
return 0
|
||||
}
|
||||
|
||||
if str, ok := ns.Meta["grpc_tls_port"]; ok {
|
||||
grpcPort, err := strconv.Atoi(str)
|
||||
if err == nil {
|
||||
return grpcPort
|
||||
}
|
||||
}
|
||||
|
||||
if str, ok := ns.Meta["grpc_port"]; ok {
|
||||
grpcPort, err := strconv.Atoi(str)
|
||||
if err == nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user