From: Amos Jeffries Date: Wed, 11 Sep 2013 01:03:45 +0000 (-0600) Subject: Fix myportname ACL on ICAP/eCAP transactions X-Git-Tag: SQUID_3_3_10~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1094c5a2d00aa8f3882465e4705d474ecd2db2df;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 841dde68ce..5e817ed14c 100644 --- a/src/HttpRequest.cc +++ b/src/HttpRequest.cc @@ -223,7 +223,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; @@ -268,6 +267,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;