mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-20 07:00:15 +00:00
Don't perform the connection test in resolveHostName() for single addresses unless required
This commit is contained in:
@@ -102,7 +102,7 @@ unsigned int LiTestClientConnectivity(const char* testServer, unsigned short ref
|
||||
return ML_TEST_RESULT_INCONCLUSIVE;
|
||||
}
|
||||
|
||||
err = resolveHostName(testServer, AF_UNSPEC, referencePort, &address, &address_length);
|
||||
err = resolveHostName(testServer, AF_UNSPEC, TCP_PORT_FLAG_ALWAYS_TEST | referencePort, &address, &address_length);
|
||||
if (err != 0) {
|
||||
return ML_TEST_RESULT_INCONCLUSIVE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user