1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-26 01:59:53 +03:00

Merge PR #1482: Cedar/Protocol.c: Fix connection to server clusters

This commit is contained in:
Davide Beatrici 2021-09-18 10:34:20 +02:00 committed by GitHub
commit a56cfac947
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);