Skip to content

Commit e012f09

Browse files
authored
Merge pull request #244 from tchaloupka/patch-1
Fix `joinMulticastGroup` for `IPv6`
2 parents 0cdddc4 + 4136c74 commit e012f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/eventcore/drivers/posix/sockets.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ final class PosixEventDriverSockets(Loop : PosixEventLoop) : EventDriverSockets
848848
} else {
849849
mreq.ipv6mr_interface = htonl(interface_index);
850850
}
851-
return () @trusted { return setsockopt(cast(sock_t)socket, IPPROTO_IP, IPV6_JOIN_GROUP, &mreq, ipv6_mreq.sizeof); } () == 0;
851+
return () @trusted { return setsockopt(cast(sock_t)socket, IPPROTO_IPV6, IPV6_JOIN_GROUP, &mreq, ipv6_mreq.sizeof); } () == 0;
852852
}
853853
}
854854

0 commit comments

Comments
 (0)