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

Do not extract request remote address from headers #889

Merged
merged 4 commits into from
Oct 17, 2019

Conversation

eyalkoren
Copy link
Contributor

@eyalkoren eyalkoren commented Oct 16, 2019

Closes #886

Checklist

@codecov-io
Copy link

codecov-io commented Oct 16, 2019

Codecov Report

Merging #889 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #889   +/-   ##
=========================================
  Coverage     64.57%   64.57%           
  Complexity     1965     1965           
=========================================
  Files           232      232           
  Lines          9461     9461           
  Branches       1235     1235           
=========================================
  Hits           6109     6109           
  Misses         2964     2964           
  Partials        388      388

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d480a9...6ec6e10. Read the comment docs.

@eyalkoren
Copy link
Contributor Author

Jenkins run the tests

@eyalkoren eyalkoren merged commit d27c984 into elastic:master Oct 17, 2019
@eyalkoren eyalkoren deleted the request-remote-address-alignment branch October 17, 2019 09:45
@@ -311,7 +311,7 @@ private void fillRequest(Request request, String protocol, String method, boolea

request.getSocket()
.withEncrypted(secure)
.withRemoteAddress(ClientIpUtils.getRealIp(request.getHeaders(), remoteAddr));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, remove ClientIpUtils

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

Successfully merging this pull request may close these issues.

Sending immediate request remote address in context.request.socket.remote_address
3 participants