diff --git a/apps/server/src/connection.ts b/apps/server/src/connection.ts index b040162c..9b599c7a 100644 --- a/apps/server/src/connection.ts +++ b/apps/server/src/connection.ts @@ -270,7 +270,7 @@ async function connectToCluster( connectionId: payload.connectionId, clusterNodes, clusterId: existingConnection ? existingConnection.clusterId : clusterId, - address: addresses[0], + address: { host: Object.values(clusterNodes)[0].host, port: Object.values(clusterNodes)[0].port }, credentials, keyEvictionPolicy, clusterSlotStatsEnabled,