From 7129c25e64ceddcc10bdb430b6c4b9a557fb7340 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 19 Dec 2011 13:27:40 +0000 Subject: [PATCH] don't give out ipv6 addresses if we're not ipv6 enabled --- daemon/call.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon/call.c b/daemon/call.c index 3d432fd18..d444748ef 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -1115,7 +1115,9 @@ static char *streams_print(GQueue *s, unsigned int num, unsigned int off, const t = s->head->data; other_off = (off == 0) ? 1 : 0; - if (family == AF_INET || (family == 0 && IN6_IS_ADDR_V4MAPPED(&t->peers[other_off].rtps[0].peer.ip46))) { + if (family == AF_INET + || (family == 0 && IN6_IS_ADDR_V4MAPPED(&t->peers[other_off].rtps[0].peer.ip46)) + || IN6_IS_ADDR_UNSPECIFIED(&t->call->callmaster->ipv6)) { ip4 = t->peers[off].rtps[0].peer.ip46.s6_addr32[3]; if (!ip4) strcpy(ips, "0.0.0.0");