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

This commit is contained in:
Cameron Gutman committed 2020-09-06 17:11:14 -07:00
1 parent 6ca0b93809
commit 128c1503f2
3 files changed
+10 -5

No files matched your search

+1 -1
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;
}