I have just discovered the --debug switch:

$ /usr/share/squid-deb-proxy-client/apt-avahi-discover --debug
avahi-browse output:
'+;enp9s0;IPv6;apt-cacher-ng\032proxy\032on\032sirius;_apt_proxy._tcp;local
'
'+;enp9s0;IPv4;apt-cacher-ng\032proxy\032on\032sirius;_apt_proxy._tcp;local
'
'=;enp9s0;IPv4;apt-cacher-ng\032proxy\032on\032sirius;_apt_proxy._tcp;local;sirius.local;192.168.7.9;3142;
'
'=;enp9s0;IPv6;apt-cacher-ng\032proxy\032on\032sirius;_apt_proxy._tcp;local;sirius.local;fdf3:7106:c31b:0:f66d:4ff:fe8f:76a2;3142;
'
Traceback (most recent call last):
 File "/usr/share/squid-deb-proxy-client/apt-avahi-discover", line 126, in
<module>
   address = get_proxy_host_port_from_avahi()
 File "/usr/share/squid-deb-proxy-client/apt-avahi-discover", line 109, in
get_proxy_host_port_from_avahi
   hosts.append(AptAvahiClient(addr))
 File "/usr/share/squid-deb-proxy-client/apt-avahi-discover", line 44, in
__init__
   self.connect( (addr[0], addr[1], 0, 0) )
 File "/usr/lib/python2.7/asyncore.py", line 356, in connect
   raise socket.error(err, errorcode[err])
socket.error: [Errno 101] ENETUNREACH

Reply via email to