Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

connection? #3

Closed
ehartford opened this Issue Mar 16, 2012 · 1 comment

Comments

Projects
None yet
2 participants

I can't see the http connection object?

I'd like to respond to remoteAddress ip range, but I do not have access to the ip address in the request object.

I expected to see a request.connection.remoteAddress but I did not see one.

example:

var proxy_tamper = require("proxy-tamper");
var proxy = proxy_tamper.start({port: 8000});
proxy.tamper("", function(request) {
  console.log(request.connection.remoteAddress);
});

(throws exception there is no "connection" in "request")

Owner

tsyd commented Apr 14, 2015

Fixed in 3756a07.

@tsyd tsyd closed this Apr 14, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment