Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source IP Address of request not accessible. #61

Closed
rustyconover opened this issue Oct 16, 2015 · 4 comments
Closed

Source IP Address of request not accessible. #61

rustyconover opened this issue Oct 16, 2015 · 4 comments

Comments

@rustyconover
Copy link

Its unclear to me how to access the source IP address of the request. The request object doesn't contain a connection key, might this require more introspection or extension of the code in proxy.js to pass it along?

@rustyconover
Copy link
Author

Never mind, I was looking in the response hook when I should be looking in the request hook.

@ggirotto
Copy link

ggirotto commented May 2, 2020

Hi @rustyconover. Even on request the connection key is not present. Do you remember how you figured out this one?

@rustyconover
Copy link
Author

@ggirotto Hi, I think I just switched to a different handler for the request and found the data.

You may be able to find it by attaching a different hander and dumping the request with console.error(util.uneval());

@ggirotto
Copy link

ggirotto commented May 6, 2020

@ggirotto Hi, I think I just switched to a different handler for the request and found the data.

You may be able to find it by attaching a different hander and dumping the request with console.error(util.uneval());

Thanks for the reply @rustyconover. I still can't find the connection object, I think it's being removed from the request object before the intercept handler returns. I'll try to investigate de code to find more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants