From: Amos Jeffries Date: Sun, 8 Sep 2013 04:27:31 +0000 (-0600) Subject: Fix myportname ACL on ICAP/eCAP transactions X-Git-Tag: SQUID_3_5_0_1~645 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=20fb35716bddaf1cb13aefbd3647a37b8cffbd42;p=thirdparty%2Fsquid.git Fix myportname ACL on ICAP/eCAP transactions The port name from http_port/https_port was not being propigated to adapted reqeusts after ICAP/eCAP. Which makes the myportname ACL and logging of portname not work on adapted requests. This is an iCelero Project --- diff --git a/src/HttpRequest.cc b/src/HttpRequest.cc index 9c1315d6ba..dc18b33515 100644 --- a/src/HttpRequest.cc +++ b/src/HttpRequest.cc @@ -228,7 +228,6 @@ HttpRequest::clone() const copy->vary_headers = vary_headers ? xstrdup(vary_headers) : NULL; // XXX: what to do with copy->peer_domain? - copy->myportname = myportname; copy->tag = tag; copy->extacl_log = extacl_log; copy->extacl_message = extacl_message; @@ -273,6 +272,8 @@ HttpRequest::inheritProperties(const HttpMsg *aMsg) extacl_passwd = aReq->extacl_passwd; #endif + myportname = aReq->myportname; + // main property is which connection the request was received on (if any) clientConnectionManager = aReq->clientConnectionManager;