linux.c, yaid.c: Correct policy application for proxied queries.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 21 Oct 2012 14:52:25 +0000 (15:52 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 24 Oct 2012 09:24:32 +0000 (10:24 +0100)
commit223e3e2be7a30ab58804b9b741c9438b123a16fd
tree7981b678c0961496f16ccf42f978fbc03958deaf
parentace9eb228c33bdb5ab3848154819e74ad2f2e4b0
linux.c, yaid.c: Correct policy application for proxied queries.

The apparent remote address for a proxy connection is the gateway, but
in fact the information is going to some remote server.  Therefore, once
we've identified a proxy connection, overwrite the remote address in
the query with the true remote host.

This means fixing up the query structure with the gateway address next
time, so keep track of the connection remote address and restore it on
each query.
linux.c
yaid.c