RTP UDP: copy scope id in udp_host_addr6()

This commit is contained in:
Martin Pulec
2015-04-09 15:45:41 +02:00
parent d98db011df
commit c8b4aa528b

View File

@@ -927,6 +927,7 @@ static char *udp_host_addr6(socket_udp * s)
}
addr6.sin6_addr = ((struct sockaddr_in6 *)&s->sock)->sin6_addr;
addr6.sin6_port = htons(s->rx_port);
addr6.sin6_scope_id = ((struct sockaddr_in6 *)&s->sock)->sin6_scope_id;
result = connect(newsock, (struct sockaddr *)&addr6, len);
if (result != 0) {
perror("connect");