Add support for retrieving remote address in HTTP listener#507
Merged
ras0219-msft merged 2 commits intomicrosoft:masterfrom Aug 26, 2017
Merged
Add support for retrieving remote address in HTTP listener#507ras0219-msft merged 2 commits intomicrosoft:masterfrom
ras0219-msft merged 2 commits intomicrosoft:masterfrom
Conversation
|
@orudge, It will cover your contributions to all Microsoft-managed open source projects. |
|
@orudge, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request. |
Contributor
Author
|
As a note, I've made a further revision which uses the RtlIpv6AddressToStringExW function (instead of InetNtopW), to ensure that the IPv6 scope ID is included. This changeset is based off a v2.9.1 branch but I can resubmit the pull request if you think this would be a better solution. |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes issues #235 and #445 by providing a mechanism to allow the client's IP address to be retrieved in the HTTP listener. I've also added in a basic unit test - more complex tests are tricky due to the unknown testing environment unfortunately.
Tested on Windows 7 and on Ubuntu.