mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Cedar/Protocol.c: Fix connection to server clusters
This commit is contained in:
parent
f74c53b449
commit
82af38c482
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user