Re: getservbyname support for cache_peer ports.

From: Amos Jeffries <squid3@dont-contact.us>
Date: Wed, 3 Oct 2007 16:14:43 +1300 (NZDT)

> Hi,
>
> Here is patch so you can use port names from /etc/services in
> squid.conf for cache_peers like so:
> cache_peer upstream.example.net parent http-cache icpv2 \
> no-digest no-netdb-exchange
> assumng you have something like this in /etc/services
> http-cache 8080/tcp
> icpv2 3130/udp
>
> This became needed here where we have the same squid.conf's deployed
> across a cluster of reverse proxies and we control originserver
> addresses via a hosts file and originserver ports via /etc/services
> locally on each node.
>
> Also note that the GetShort and the various ushortlist functions are
> unused in cache_cf.c, can they be removed ?
>
> ps. Only tested on FreeBSD.
>

Wonderful. Thank you very much for this addition.

Amos
Received on Tue Oct 02 2007 - 21:15:07 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Oct 30 2007 - 13:00:03 MDT