Comment 5 for bug 686265

Revision history for this message
Carl Karsten (carlfk) wrote :

re: #3: patch won't help.

The added line was meant to wrap IPv6 addresses with [], but it will only be looking for them in IPv4 addresses, so it will never find anything.

 out=$(avahi-browse -kprt $SERVICE|grep '^=;.*;IPv4;.*'|head -n1)
 IP=$(echo "$out"|cut -d';' -f8)
+echo "$IP" | grep -q : >/dev/null >&1 && IP="[$IP]"