diff --git a/agent/consul/peering_backend.go b/agent/consul/peering_backend.go index 30fda81f8b..4447d962a5 100644 --- a/agent/consul/peering_backend.go +++ b/agent/consul/peering_backend.go @@ -70,6 +70,9 @@ func (b *PeeringBackend) GetServerAddresses() ([]string, error) { } addrs = append(addrs, node.Address+":"+grpcPortStr) } + if len(addrs) == 0 { + return nil, fmt.Errorf("a grpc bind port must be specified in the configuration for all servers") + } return addrs, nil }