-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
More flexibility in configuration of client proxy(#1446) #1447
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
I signed it.
чт, 17 авг. 2017, 4:55 PM googlebot <notifications@github.com>:
… Thanks for your pull request. It looks like this may be your first
contribution to a Google open source project. Before we can look at your
pull request, you'll need to sign a Contributor License Agreement (CLA).
📝 *Please visit https://cla.developers.google.com/
<https://cla.developers.google.com/> to sign.*
Once you've signed, please reply here (e.g. I signed it!) and we'll
verify. Thanks.
------------------------------
- If you've already signed a CLA, it's possible we don't have your
GitHub username or you're using a different email address. Check your
existing CLA data <https://cla.developers.google.com/clas> and verify
that your email is set on your git commits
<https://help.github.com/articles/setting-your-email-in-git/>.
- If your company signed a CLA, they designated a Point of Contact who
decides which employees are authorized to participate. You may need to
contact the Point of Contact for your company and ask to be added to the
group of authorized contributors. If you don't know who your Point of
Contact is, direct the project maintainer to go/cla#troubleshoot.
- In order to pass this check, please resolve this problem and have
the pull request author add another comment and the bot will run again.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1447 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AEHGrGRvv94Yx0wsq7XXmd2Prz1_Vo5_ks5sZEZagaJpZM4O6TIA>
.
|
CLAs look good, thanks! |
* ProxyURL client option * Posibility to use credentials from proxy string
Fixed tests and added case for using custom proxy. |
Thanks for the contribution and sorry for the late reply. One issue with your proposed fix is that, the new dial option A proxy dialer actually consists of three parts:
Currently, we have these three components, but they are not explicitly called out and not exported. The proposal we make here is to make the mapper and handshaker public, so users can compose their custom proxy dialer as they want, using these components. This includes:
With the above changes, for your particular problem, you would just need to provide your mapper (which always returns your specified Please let us know if you want to make the implementation as we suggested. If you don't have time to implement all of those and want a solution for your issue, a walkaround would be to implement your own proxy dialer, which may need copying some of the function from proxy.go, and dial using WithDialer. |
@dfawley no problem. I will implement it asap. |
Ping. Are you still planning on implementing this? |
@menghanl sorry for delay, I was on vacation. I am planning to implement this on Monday. |
@shevchenkodenis No worries! Thanks for implementing this! |
Ping. Just want to check what the status of this is. |
Thank you for your pull request. Before we can look at your contribution, we need to ensure all contributors are covered by a Contributor License Agreement. After the following items are addressed, please respond with a new comment here, and the automated system will re-verify.
Regards, |
Closing the PR now. |
fixes #1446