Skip to content

Commit 52d7c9c

Browse files
Merge pull request #3577 from RedisInsight/bugfix/be/RI-5539-fix-empty-tls-oss-cluster-page
RI-5539: Consume tls-port in cluster shard node retrieval
2 parents f6564c0 + f4f9861 commit 52d7c9c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

redisinsight/api/src/modules/cluster-monitor/strategies/cluster-shards.info.strategy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ export class ClusterShardsInfoStrategy extends AbstractInfoStrategy {
3535
const node = {
3636
id: nodeObj.id,
3737
host: nodeObj.ip,
38-
port: nodeObj.port,
38+
port: nodeObj.port || nodeObj.get('tls-port'),
39+
tlsPort: nodeObj.get('tls-port'),
3940
role: nodeObj.role === 'master' ? NodeRole.Primary : NodeRole.Replica,
4041
health: nodeObj.health,
4142
};

redisinsight/api/src/modules/redis/client/redis.client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export interface IRedisClientOptions {
3131
port?: number,
3232
natHost?: string,
3333
natPort?: number,
34+
tlsPort?: number,
3435
connectTimeout?: number,
3536
}
3637

0 commit comments

Comments
 (0)