Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Disable IPv6 support on Windows, for now
Browse files Browse the repository at this point in the history
  • Loading branch information
qmfrederik committed Jun 15, 2020
1 parent 0896e54 commit 811ede1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ int socket_create(uint16_t port)
return sfd;
}

#ifdef AF_INET6
#if defined(AF_INET6) && !defined(_MSC_VER)
static uint32_t _in6_addr_scope(struct in6_addr* addr)
{
uint32_t scope = 0;
Expand Down Expand Up @@ -464,7 +464,7 @@ int socket_connect_addr(struct sockaddr* addr, uint16_t port)
addr_in->sin_port = htons(port);
addrlen = sizeof(struct sockaddr_in);
}
#ifdef AF_INET6
#if defined(AF_INET6) && !defined(_MSC_VER)
else if (addr->sa_family == AF_INET6) {
struct sockaddr_in6* addr_in = (struct sockaddr_in6*)addr;
addr_in->sin6_port = htons(port);
Expand Down

0 comments on commit 811ede1

Please sign in to comment.