# HG changeset patch # User Daniel Atallah # Date 1284733951 0 # Node ID fcb8fad4f0292870dd409487572988f831e7f416 # Parent 3b6106598b13e08e50ba28f69a670b3f12451fe9 Specify an IPv6 scope on the IP address being used to reference a Bonjour Buddy. Thanks goes to Antonio Ospite for figuring out that this needs to be done. Fixes #12629 diff -r 3b6106598b13 -r fcb8fad4f029 libpurple/protocols/bonjour/mdns_avahi.c --- a/libpurple/protocols/bonjour/mdns_avahi.c Thu Sep 16 02:25:56 2010 +0000 +++ b/libpurple/protocols/bonjour/mdns_avahi.c Fri Sep 17 14:32:31 2010 +0000 @@ -188,12 +188,14 @@ bb->ips = g_slist_remove(bb->ips, rd->ip); g_free((gchar *) rd->ip); } - rd->ip = g_strdup(ip); /* IPv6 goes at the front of the list and IPv4 at the end so that we "prefer" IPv6, if present */ - if (protocol == AVAHI_PROTO_INET6) + if (protocol == AVAHI_PROTO_INET6) { + rd->ip = g_strdup_printf("%s%%%d", ip, interface); bb->ips = g_slist_prepend(bb->ips, (gchar *) rd->ip); - else + } else { + rd->ip = g_strdup(ip); bb->ips = g_slist_append(bb->ips, (gchar *) rd->ip); + } } bb->port_p2pj = port;