Skip to content

Commit f4f9861

Browse files
committed
Consume tls-port as well for port to fix the TLS OSS cluster page
1 parent 1854c70 commit f4f9861

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)