diff --git a/src/cluster.c b/src/cluster.c index 33c5a0ee1b..6744075c72 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -1415,7 +1415,7 @@ void clusterCommandSlots(client *c) { * 3) node ID * ... continued until done */ - connTypeForCaching conn_type = connIsTLS(c->conn); + connTypeForCaching conn_type = shouldReturnTlsInfo(); if (detectAndUpdateCachedNodeHealth()) clearCachedClusterSlotsResponse();