Re: [squid-users] Getting IP address of client in parseHttpRequest ( / Squid 3.3.9

From: Amos Jeffries <>
Date: Wed, 09 Oct 2013 17:00:10 +1300

On 9/10/2013 12:09 a.m., Peter Belau wrote:
> Hi,
> I'm doing a little hacking on Squid in and I need a way to obtain the client IP address from within parseHttpRequest(). In earlier versions of Squid this used to be in ConnStateData but now seems to have moved to the ClientHttpRequest class. Unfortunately, however, this structure does not seem to be fully populated when it's instantiated from parseHttpRequest()
> Could anyone suggest clean way of obtaining this information from within parseHttpRequest() ?

It is still located in ConnStateData and called clientConnection. In
particular clientConnection->remote.

What are you patching into Squid exactly please?

Received on Wed Oct 09 2013 - 04:00:31 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 09 2013 - 12:00:05 MDT