From fff924bd9b03ed66a59b68b747eb495969529217 Mon Sep 17 00:00:00 2001 From: Maximilian Fridrich Date: Tue, 2 Jul 2024 08:50:05 +0200 Subject: [PATCH] udp/mcast: use group scopeid as interface for IPv6 --- src/udp/mcast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udp/mcast.c b/src/udp/mcast.c index a40ed1148..429479b8d 100644 --- a/src/udp/mcast.c +++ b/src/udp/mcast.c @@ -37,7 +37,7 @@ static int multicast_update(struct udp_sock *us, const struct sa *group, #ifdef HAVE_INET6 case AF_INET6: mreq6.ipv6mr_multiaddr = group->u.in6.sin6_addr; - mreq6.ipv6mr_interface = 0; + mreq6.ipv6mr_interface = sa_scopeid(group); err = udp_setsockopt(us, IPPROTO_IPV6, join