fix erroneously reported 0.0.0.0 address when bridging from ipv6

pull/81/head
Richard Fuchs 11 years ago
parent b83e80c811
commit 956d07d42e

@ -2865,7 +2865,8 @@ static int call_stream_address4(char *o, struct packet_stream *ps, enum stream_a
l = 4;
}
if (!in6_to_4(&ps->advertised_endpoint.ip46) && !is_trickle_ice_address(&ps->advertised_endpoint)) {
if (is_addr_unspecified(&ps->advertised_endpoint.ip46)
&& !is_trickle_ice_address(&ps->advertised_endpoint)) {
strcpy(o + l, "0.0.0.0");
l += 7;
}

Loading…
Cancel
Save