Skip to content

Commit f3a8d2d

Browse files
committed
Also fix joinMulticastGroup for IPv6 on Windows.
See #244.
1 parent e012f09 commit f3a8d2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/eventcore/drivers/winapi/sockets.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ final class WinAPIEventDriverSockets : EventDriverSockets {
635635
ipv6_mreq mreq;
636636
mreq.ipv6mr_multiaddr = addr.sin6_addr;
637637
mreq.ipv6mr_interface = htonl(interface_index);
638-
return () @trusted { return setsockopt(cast(SOCKET)socket, IPPROTO_IP, IPV6_JOIN_GROUP, &mreq, ipv6_mreq.sizeof); } () == 0;
638+
return () @trusted { return setsockopt(cast(SOCKET)socket, IPPROTO_IPV6, IPV6_JOIN_GROUP, &mreq, ipv6_mreq.sizeof); } () == 0;
639639
}
640640
}
641641

0 commit comments

Comments
 (0)