Revision: 14877
Author:   adrian.chadd
Date:     Sat Jul  9 08:32:53 2011
Log:      populate request->out_ip6 correctly


http://code.google.com/p/lusca-cache/source/detail?r=14877

Modified:
 /playpen/LUSCA_HEAD_ipv6/src/forward.c

=======================================
--- /playpen/LUSCA_HEAD_ipv6/src/forward.c      Sat Jul  9 08:25:03 2011
+++ /playpen/LUSCA_HEAD_ipv6/src/forward.c      Sat Jul  9 08:32:53 2011
@@ -343,6 +343,9 @@
             comm_add_close_handler(server_fd, fwdPeerClosed, fs->peer);
         }
         comm_add_close_handler(server_fd, fwdServerClosed, fwdState);
+
+        /* And whilst we're at it, populate out_ip6 */
+ sqinet_copy(&fwdState->request->out_ip6, &fd_table[server_fd].local_address);
     }

if (Config.onoff.log_ip_on_direct && status != COMM_ERR_DNS && fs->code == HIER_DIRECT)
@@ -573,6 +576,7 @@

     /* XXX v4 only! */
 #warning getOutgoingAddr is v4 only!
+    /* XXX this needs to be delayed until the request has completed */
     sqinet_set_v4_inaddr(&fwdState->request->out_ip6, &outgoing);

if (fwdState->servers && fwdState->servers->peer && fwdState->servers->peer->options.no_tproxy)

--
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en.

Reply via email to