Note: This does not work with the current version of node-http-proxy and node 0.12.0 because req.connection.pair is not defined.