Skip to content

Commit

Permalink
udp/mcast: use group scopeid as interface for IPv6 (#1149)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianfridrich authored Jul 2, 2024
1 parent 4f0144b commit f3b5979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/udp/mcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3b5979

Please sign in to comment.