The unified diff between revisions [6851563f..] and [cdb765b8..] is displayed below. It can also be downloaded as a raw diff.

#
#
# patch "src/http.c"
#  from [a99fbe58a1e88291299a48fbff129ad85e9e6474]
#    to [69d4e2cd7969e575f5cdba81916aab1f9b2c6223]
#
============================================================
--- src/http.c	a99fbe58a1e88291299a48fbff129ad85e9e6474
+++ src/http.c	69d4e2cd7969e575f5cdba81916aab1f9b2c6223
@@ -587,7 +587,7 @@ httpReadReply(int fd, void *data)
     }
 #if LINUX_TPROXY
     else if ( ( Config.onoff.linux_tproxy ) &&
-      ( (fwdState->request->my_port == Config.tproxy_port) || (Config.tproxy_port == 0) )) {
+      ( (httpState->request->my_port == Config.tproxy_port) || (Config.tproxy_port == 0) )) {
         client_addr=&httpState->request->client_addr;
     }
 #endif
@@ -754,7 +754,7 @@ httpReadReply(int fd, void *data)
 		    if (request->flags.accelerated && Config.Accel.single_host && Config.Accel.host)
 			pconnPush(fd, Config.Accel.host, Config.Accel.port, client_addr, client_port);
 		    else
-			pconnPush(fd, request->host, request->port, local);
+			pconnPush(fd, request->host, request->port, client_addr, client_port);
 		    fwdComplete(httpState->fwd);
 		    httpState->fd = -1;
 		    httpStateFree(fd, httpState);