Always use the test port
This commit is contained in:
parent
9064d4931f
commit
a89fcb8a46
1 changed files with 2 additions and 3 deletions
|
|
@ -435,9 +435,8 @@ int resolveHostName(const char* host, int family, int tcpTestPort, struct sockad
|
|||
}
|
||||
|
||||
for (currentAddr = res; currentAddr != NULL; currentAddr = currentAddr->ai_next) {
|
||||
// Use the test port to ensure this address is working if there
|
||||
// are multiple addresses for this host name
|
||||
if (tcpTestPort != 0 && res->ai_next != NULL) {
|
||||
// Use the test port to ensure this address is working
|
||||
if (tcpTestPort != 0) {
|
||||
SOCKET testSocket = connectTcpSocket((struct sockaddr_storage*)currentAddr->ai_addr,
|
||||
currentAddr->ai_addrlen,
|
||||
tcpTestPort,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue