]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remember local port of the CONNECT tunnel to the server, for %<lp logging.
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 24 Aug 2010 20:19:30 +0000 (14:19 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 24 Aug 2010 20:19:30 +0000 (14:19 -0600)
src/tunnel.cc

index ec26c59559929a7cc63aa4766c2d61d90dcd74f1..2f9223d3c1268d69a867dc53ddbe97b0119d161f 100644 (file)
@@ -680,6 +680,8 @@ tunnelStart(ClientHttpRequest * http, int64_t * size_ptr, int *status_ptr)
         return;
     }
 
+    request->hier.peer_local_port = comm_local_port(sock); // for %<lp logging
+
     tunnelState = new TunnelStateData;
 #if DELAY_POOLS