cockpitauth: set RHOST based on metadata object
cockpitauth: set RHOST based on metadata object

Modify get_remote_address() to read the "metadata" qdata off of the
socket connection object.

If we have a metadata object and it contains an "origin-ip" field, use
it as the contents of the COCKPIT_REMOTE_PEER environment variable to
cockpit-session.

cockpit-project/cockpit,deryni/cockpit,deryni/cockpit,martinpitt/cockpit,mvollmer/cockpit,mvollmer/cockpit,deryni/cockpit,cockpit-project/cockpit,cockpit-project/cockpit,garrett/cockpit,garrett/cockpit,mvollmer/cockpit,deryni/cockpit,cockpit-project/cockpit,mvollmer/cockpit,mvollmer/cockpit,deryni/cockpit,garrett/cockpit,deryni/cockpit,cockpit-project/cockpit,martinpitt/cockpit,deryni/cockpit,martinpitt/cockpit,martinpitt/cockpit,martinpitt/cockpit,garrett/cockpit,garrett/cockpit