On Thu, 2013-08-08 at 16:23 +0200, Michael Vogt wrote:

> I like this suggestion a lot, do you think its sufficient to special
> case localhost and (always) prefer that or something more
> sophisticated like measuring how long a connect to the port takes?

localhost won't match what is returned from avahi but anyway I would
suggest prefer the local machine. If there is no proxy on the local
machine, then use whichever proxy connects first.

pabs@chianamo ~ $ avahi-browse -kprt _apt_proxy._tcp
+;wlan0;IPv4;Squid\032deb\032proxy\032on\032someothersystem;_apt_proxy._tcp;local
+;wlan0;IPv4;apt-cacher-ng\032proxy\032on\032chianamo;_apt_proxy._tcp;local
=;wlan0;IPv4;Squid\032deb\032proxy\032on\032rocinante;_apt_proxy._tcp;local;someothersystem.local;10.0.0.134;8000;
=;wlan0;IPv4;apt-cacher-ng\032proxy\032on\032chianamo;_apt_proxy._tcp;local;chianamo.local;10.0.0.134;3142;

-- 
bye,
pabs

http://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to