mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-10 06:31:48 +00:00
fixed the connect call always taking the address of the first result from getaddrinfo
This commit is contained in:
parent
04c765f46c
commit
24fac5557c
2 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,8 @@ chg: on Windows, a fatal error will move the early console window to the foregro
|
|||
chg: com_hunkMegs doesn't have a maximum value anymore
|
||||
a value too high would reset it and the engine might fail to load with the default value
|
||||
|
||||
fix: cl_allowDownload 1 failing on "connect" (error 10047 on Windows)
|
||||
|
||||
fix: cl_allowDownload 1 was using the current directory instead of fs_basepath
|
||||
|
||||
fix: jitter due to snapshots piling up with the same server timestamp for loopback and LAN clients
|
||||
|
|
|
@ -386,7 +386,7 @@ static qbool Download_Begin( mapDownload_t* dl, int port, const char* server, co
|
|||
continue;
|
||||
}
|
||||
|
||||
if (connect(dl->socket, address->ai_addr, address->ai_addrlen) == SOCKET_ERROR) {
|
||||
if (connect(dl->socket, a->ai_addr, a->ai_addrlen) == SOCKET_ERROR) {
|
||||
PrintSocketError(dl, "connect");
|
||||
if (dl->socket != INVALID_SOCKET) {
|
||||
Q_closesocket(dl->socket);
|
||||
|
|
Loading…
Reference in a new issue