Commit ecaaf70e authored by Olivier Crête's avatar Olivier Crête 👻

udp-bsd: Create IPv6 socket if it such an address

parent c5f52ce9
......@@ -89,6 +89,12 @@ nice_udp_bsd_socket_new (NiceAddress *addr)
name.ss_family = AF_INET;
#ifdef HAVE_SA_LEN
name.ss_len = sizeof (struct sockaddr_in);
#endif
} else if (name.ss_family == AF_INET6) {
sockfd = socket (PF_INET6, SOCK_DGRAM, IPPROTO_UDP);
name.ss_family = AF_INET6;
#ifdef HAVE_SA_LEN
name.ss_len = sizeof (struct sockaddr_in6);
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment