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

Make it possible to get the server's IP Address into a variable #34

Open
ahawtho opened this issue Mar 31, 2017 · 1 comment
Open

Make it possible to get the server's IP Address into a variable #34

ahawtho opened this issue Mar 31, 2017 · 1 comment

Comments

@ahawtho
Copy link

ahawtho commented Mar 31, 2017

I was trying to find a server that had an issue with a round robin DNS. Our changes had been rolled out to some nodes, but not others. I wrote a script that would keep making the request until it failed so we could pinpoint the problem, but it doesn't seem to be possible to get the IP address of the server contacted by the request in the response actions, so I had to resort to curl and bash.

@pmarkert
Copy link
Owner

pmarkert commented Apr 1, 2017

This one is looking like more of a challenge. At first, I was hopeful that the http request/response objects that are available in the session as "hyperpotamus.response" and "hyperpotamus.response.request" would have the remote IP Address available as one of the properties. If this were true, then you could read the value out of the session that way, but looking at things in the debugger, it does not appear to be there anywhere. By the time the request is received, the remoteAddress has been deleted.

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