Skip to content

Commit

Permalink
Merge pull request #244 from tchaloupka/patch-1
Browse files Browse the repository at this point in the history
Fix `joinMulticastGroup` for `IPv6`
  • Loading branch information
s-ludwig authored Nov 9, 2024
2 parents 0cdddc4 + 4136c74 commit e012f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/eventcore/drivers/posix/sockets.d
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ final class PosixEventDriverSockets(Loop : PosixEventLoop) : EventDriverSockets
} else {
mreq.ipv6mr_interface = htonl(interface_index);
}
return () @trusted { return setsockopt(cast(sock_t)socket, IPPROTO_IP, IPV6_JOIN_GROUP, &mreq, ipv6_mreq.sizeof); } () == 0;
return () @trusted { return setsockopt(cast(sock_t)socket, IPPROTO_IPV6, IPV6_JOIN_GROUP, &mreq, ipv6_mreq.sizeof); } () == 0;
}
}

Expand Down

0 comments on commit e012f09

Please sign in to comment.