Don't perform the connection test in resolveHostName() for single addresses unless required

This commit is contained in:
Cameron Gutman
2020-09-06 17:11:14 -07:00
parent 6ca0b93809
commit 128c1503f2
3 changed files with 10 additions and 5 deletions

View File

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