-
Notifications
You must be signed in to change notification settings - Fork 339
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
Sets the curl proxy ssl verify options to the values of the host configuration options #1629
Conversation
src/lib/curl/Request.hxx
Outdated
@@ -122,6 +122,14 @@ public: | |||
easy.SetVerifyPeer(value); | |||
} | |||
|
|||
void SetProxyVerifyHost(bool value) { | |||
easy.SetOption(CURLOPT_PROXY_SSL_VERIFYHOST, value == 1 ? 2L : 0L); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't compare a bool with an int!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
I'm not sure if that should be a separate option - I guess if you disable verify, you're completely lost already anyway? Is it helpful to verify the proxy but not the final server? |
…iguration options This fixes MusicPlayerDaemon#1616
|
This was also my assumption. |
Reading https://curl.se/libcurl/c/CURLOPT_PROXY_SSL_VERIFYHOST.html |
Cherry-picked to v0.23.x 7ab0dfc |
True, and that's what your code does. The |
This fixes #1616
Or do you want two new configuration options for the curl plugin?