From 5accfd075187ce61024024608cda02f694b6fbd2 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 25 Jan 2013 12:47:39 -0500 Subject: [PATCH] dont return ipv6 address by default --- daemon/call.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/call.c b/daemon/call.c index 6280d1b78..24b74292b 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -1497,6 +1497,8 @@ int call_stream_address(GString *o, struct peer *p, enum stream_address_format f return call_stream_address4(o, p, format); if (other->desired_family == 0 && IN6_IS_ADDR_V4MAPPED(&other->rtps[0].peer.ip46)) return call_stream_address4(o, p, format); + if (other->desired_family == 0 && IN6_IS_ADDR_UNSPECIFIED(&other->rtps[0].peer.ip46)) + return call_stream_address4(o, p, format); if (IN6_IS_ADDR_UNSPECIFIED(&m->conf.ipv6)) return call_stream_address4(o, p, format);