1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-09 03:53:26 +00:00

1. Updated module search to use JS lookup table

2. Fixed bug in proxy failure fallback logic
This commit is contained in:
Bryan Roe
2021-07-27 19:07:34 -07:00
parent 4f0bee9fc9
commit 7820ef25ba
7 changed files with 173 additions and 211 deletions

View File

@@ -963,7 +963,13 @@ void ILibAsyncSocket_ConnectTo(void* socketModule, struct sockaddr *localInterfa
// Allocate a new socket
if (module->RemoteAddress.sin6_family != AF_UNIX)
{
if ((module->internalSocket = ILibGetSocket(localInterface, SOCK_STREAM, IPPROTO_TCP)) == 0) { ILIBCRITICALEXIT(253); return; }
if (((struct sockaddr_in*)localInterface)->sin_family == AF_UNSPEC || (module->internalSocket = ILibGetSocket(localInterface, SOCK_STREAM, IPPROTO_TCP)) == 0)
{
module->internalSocket = 0;
module->FinConnect = -1;
ILibLifeTime_Add(module->LifeTime, socketModule, 0, &ILibAsyncSocket_Disconnect, NULL);
return;
}
}
else
{