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

proxy-addr + forwarded #666

Closed
wants to merge 1 commit into from
Closed

proxy-addr + forwarded #666

wants to merge 1 commit into from

Conversation

jonathanong
Copy link
Member

not much benefit so i'm gonna put this on hold

ref: #281

return proxy && val
? val.split(/\s*,\s*/)
return proxy
? forwarded(this.req)
Copy link
Contributor

Choose a reason for hiding this comment

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

Depending on what you want ips to be, ideally they should get cut off at the trust endpoint. You can remove a dependency with using https://github.com/jshttp/proxy-addr#proxyaddrallreq-trust

return proxyAddr.all(this,req, this.app._proxyTrust);

Copy link
Member Author

Choose a reason for hiding this comment

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

oh shoot. nice.

@jonathanong jonathanong closed this Mar 4, 2016
@jonathanong jonathanong deleted the proxy-addr branch August 18, 2021 04:53
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.

2 participants