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

feat(client): add HttpConnector::set_global_destination_only #1648

Closed
wants to merge 1 commit into from

Conversation

niklasf
Copy link

@niklasf niklasf commented Sep 6, 2018

Allow restricting destinations to addresses that appear to be
publicly routable. This can be a useful security measure when
connecting to user defined URLs.


Is this something you would consider including? Or if not, is there a more elegant way to build this outside of hyper than copying the entire HttpConnector implementation?

Allow restricting destinations to addresses that appear to be
publicly routable. This can be a useful security measure when
connecting to user defined URLs.
@seanmonstar
Copy link
Member

Sorry for taking so long to get to this, it slipped out of my notifications.

I'd probably be more in favor of #1517, which allows for plugging in some custom DNS resolving logic, instead of adding more and more knobs to the HttpConnector (especially since I tried searching for other HTTP libraries to see if they handled this, and most seem to just allow plugging in a resolver).

@niklasf
Copy link
Author

niklasf commented Oct 17, 2018

Makes sense. Thanks.

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