From 82af38c4829d576fc22606d40aacbb7cf96a1fc2 Mon Sep 17 00:00:00 2001 From: Yihong Wu <54519668+domosekai@users.noreply.github.com> Date: Sat, 18 Sep 2021 08:06:10 +0000 Subject: [PATCH] Cedar/Protocol.c: Fix connection to server clusters --- src/Cedar/Protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cedar/Protocol.c b/src/Cedar/Protocol.c index 9696224a..51ef1425 100644 --- a/src/Cedar/Protocol.c +++ b/src/Cedar/Protocol.c @@ -6276,7 +6276,7 @@ SOCK *ClientConnectGetSocket(CONNECTION *c, bool additional_connect) c->ServerPort = o->Port; } - if (IsZeroIP(&sess->ServerIP_CacheForNextConnect) == false) + if (additional_connect && IsZeroIP(&sess->ServerIP_CacheForNextConnect) == false) { IPToStr(hostname, sizeof(hostname), &sess->ServerIP_CacheForNextConnect); Debug("ClientConnectGetSocket(): Using cached IP address %s\n", hostname);