Commit a5298ce7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix multicast TTL setting

(credited to LennonNZ on VideoLAN forums)
parent 80dbcde2
......@@ -108,7 +108,7 @@ Broadcast::Broadcast(int i_ttl, const char *psz_iface) : fd4 (-1), fd6 (-1),
}
if (i_ttl != 0)
setsockopt (fd6, IPPROTO_IP, IP_MULTICAST_TTL,
setsockopt (fd4, IPPROTO_IP, IP_MULTICAST_TTL,
&i_ttl, sizeof(i_ttl));
if (bind (fd4, (struct sockaddr *)&addr, sizeof (addr)) == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment