Don't perform the connection test in resolveHostName() for single addresses unless required
This commit is contained in:
parent
6ca0b93809
commit
128c1503f2
3 changed files with 10 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue