So I don't have to go look it up again:
 
/usr/share/squid-deb-proxy-client/apt-avahi-discover 
#!/bin/sh
#
# use avahi to find a _apt_proxy._tcp provider and return
# a http proxy string suitable for apt

SERVICE="_apt_proxy._tcp"

out=$(avahi-browse -kprt $SERVICE|grep '^=;.*;IPv4;.*'|head -n1)
IP=$(echo "$out"|cut -d';' -f8)
PORT=$(echo "$out"|cut -d';' -f9)
echo "http://$IP:$PORT/";

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/686265

Title:
  client doing wicked ipv6 stuff and failing

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to