]> git.ipfire.org Git - thirdparty/squid.git/commit
Cleanup: de-duplicate fake-CONNECT code
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 3 Aug 2015 09:15:27 +0000 (02:15 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 3 Aug 2015 09:15:27 +0000 (02:15 -0700)
commita30b692cf9f8cff4b35f0d0262d357bcba984f6a
tree40bcc2e1fca9cc33657daa49c283bf2b4b6ff007
parentf4405bd38b167f0777800ae2ecf04c8c5eca9b9e
Cleanup: de-duplicate fake-CONNECT code

Over the course of the peek-n-splice development and followup patches
the code generating fake CONNECT requests to tunnel various intercepted
traffic has been copy-n-pasted several times.

Add a new method fakeAConnectRequest() that takes a debug reason and
SBuf containing any payload to preserve from the original I/O buffer.
src/client_side.cc
src/client_side.h