On tis, 2007-07-03 at 21:19 +0100, Markus Moeller wrote:
> I am now looking at http.c ( squid 2.6STABLE13) and I think I can add some 
> code around here:
> 
>         } else {
>             httpHeaderPutStrf(hdr_out, HDR_PROXY_AUTHORIZATION, "Basic %s",
>                 base64_encode(orig_request->peer_login));
>         }
> 
> The only value I need at that point is the hostname of the cache_peer squid 
> is connecting too, but I can't find which variable, structure contains the 
> cache_peer name. Could someone point me to it ?

It's in request->host I think.

On requests forwarded to peers request is a bit odd, pointing to the
peer with the full URL as urlpath, and orig_requests being the actual
request.. (always is).

Regards
Henrik

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

Reply via email to