diff --git a/source/vibe/core/net.d b/source/vibe/core/net.d index 94ceb18..14e0b39 100644 --- a/source/vibe/core/net.d +++ b/source/vibe/core/net.d @@ -800,10 +800,10 @@ struct UDPConnection { See https://www.iana.org/assignments/multicast-addresses/multicast-addresses.xml#multicast-addresses-12 and https://www.iana.org/assignments/ipv6-multicast-addresses/ipv6-multicast-addresses.xhtml */ - void addMembership(ref NetworkAddress multiaddr, uint interface_address = 0) + void addMembership(ref NetworkAddress multiaddr, uint interface_index = 0) { scope addr = new RefAddress(multiaddr.sockAddr, multiaddr.sockAddrMaxLen); - enforce(eventDriver.sockets.joinMulticastGroup(m_socket, addr, interface_address), + enforce(eventDriver.sockets.joinMulticastGroup(m_socket, addr, interface_index), "Failed to add multicast membership."); }