> -----Original Message----- > From: Bryan McQuade > Sent: Montag, 23. August 2010 16:14 > To: dev@httpd.apache.org > Subject: Re: Connection filters and the proxy > > We added the following code snippet in our connection filter. If there > is a better way please let me know as I would like to switch our code > to use it (I believe we require pre_connection instead of > process_connection so we can't use Stefan's suggestion): > > // If this is not an inbound connection, for example one generated > // by mod_proxy, then do not filter it. > if (c->local_addr->port != c->base_server->port) { > return OK; > }
Better check for c->sbh == NULL. This is only true in the case of a proxy connection. Regards Rüdiger