Skip to content

Commit

Permalink
Merge pull request #615 from cole-miller/fix-getaddrinfo
Browse files Browse the repository at this point in the history
raft/uv: Drop AI_V4MAPPED | AI_ADDRCONFIG from getaddrinfo
  • Loading branch information
Mathieu Borderé authored Mar 4, 2024
2 parents 01bced7 + bea9e6f commit b07c9ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/raft/uv_ip.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ int uvIpAddrSplit(const char *address,
int uvIpResolveBindAddresses(const char *address, struct addrinfo **ai_result)
{
static struct addrinfo hints = {
.ai_flags = AI_ADDRCONFIG | AI_PASSIVE | AI_NUMERICSERV,
.ai_flags = AI_PASSIVE | AI_NUMERICSERV,
.ai_family = AF_INET,
.ai_socktype = SOCK_STREAM,
.ai_protocol = 0};
Expand Down
2 changes: 1 addition & 1 deletion src/raft/uv_tcp_connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ static void uvGetAddrInfoCb(uv_getaddrinfo_t *req,
/* Create a new TCP handle and submit a connection request to the event loop. */
static int uvTcpConnectStart(struct uvTcpConnect *r, const char *address)
{
static struct addrinfo hints = {.ai_flags = AI_V4MAPPED | AI_ADDRCONFIG,
static struct addrinfo hints = {.ai_flags = 0,
.ai_family = AF_INET,
.ai_socktype = SOCK_STREAM,
.ai_protocol = 0};
Expand Down

0 comments on commit b07c9ea

Please sign in to comment.