HTTP X-Forwarded-For/Z39.50 Client-IP support
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 5 Mar 2014 17:22:23 +0000 (18:22 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 5 Mar 2014 17:22:23 +0000 (18:22 +0100)
commitf3e215cc00b02e3d92016f095295af2ba4649e2f
tree014dcce45165b5f06367f00a8477cc5352e297f1
parentefd02482054ac750a9dcd3d10fa349e26c5e7e65
HTTP X-Forwarded-For/Z39.50 Client-IP support

virt_db, multi: relays Z39.50 client-IP.
sru_z3950: converts X-Forwarded-For header to Z39.50 client-IP.
zoom: uses Client-IP or origin address (prefer Client-IP).
frontend_net: Strips tcp: from peer address (so that it is no longer
printed and stripped in zoom filter).
z3950_client: builds client-IP list - combining immediate peer address
as returned by COMSTACK and existing client-IP list (if avaiable).
The Origin only printes first X-Forwarded address.
include/metaproxy/origin.hpp
src/filter_frontend_net.cpp
src/filter_multi.cpp
src/filter_sru_to_z3950.cpp
src/filter_virt_db.cpp
src/filter_z3950_client.cpp
src/filter_zoom.cpp
src/origin.cpp