diff --git a/dub.sdl b/dub.sdl index 31ead3a..0f1a8d4 100644 --- a/dub.sdl +++ b/dub.sdl @@ -4,7 +4,7 @@ authors "Sönke Ludwig" copyright "Copyright © 2016, rejectedsoftware e.K." license "MIT" -dependency "eventcore" version="~>0.8.16" +dependency "eventcore" version="~>0.8.18" targetName "vibe_core" diff --git a/source/vibe/core/net.d b/source/vibe/core/net.d index 48b7431..94ceb18 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) + void addMembership(ref NetworkAddress multiaddr, uint interface_address = 0) { scope addr = new RefAddress(multiaddr.sockAddr, multiaddr.sockAddrMaxLen); - enforce(eventDriver.sockets.joinMulticastGroup(m_socket, addr), + enforce(eventDriver.sockets.joinMulticastGroup(m_socket, addr, interface_address), "Failed to add multicast membership."); }