FS-6303 --resolve
This commit is contained in:
parent
c902d34666
commit
9d68e99268
|
@ -985,8 +985,8 @@ ESL_DECLARE(esl_status_t) esl_connect_timeout(esl_handle_t *handle, const char *
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(&handle->sockaddr, result->ai_addr, sizeof(handle->sockaddr));
|
memcpy(&handle->sockaddr, result->ai_addr, result->ai_addrlen);
|
||||||
switch(handle->sockaddr.ss_family) {
|
switch(handle->sockaddr.ss_family) {
|
||||||
case AF_INET:
|
case AF_INET:
|
||||||
sockaddr_in = (struct sockaddr_in*)&(handle->sockaddr);
|
sockaddr_in = (struct sockaddr_in*)&(handle->sockaddr);
|
||||||
sockaddr_in->sin_port = htons(port);
|
sockaddr_in->sin_port = htons(port);
|
||||||
|
|
Loading…
Reference in New Issue