Sets the curl proxy ssl verify options to the values of the host configuration options

This fixes #1616
This commit is contained in:
jcorporation
2022-09-27 20:05:29 +02:00
committed by Max Kellermann
parent 15ff7c4cad
commit 7ab0dfc8ce
2 changed files with 10 additions and 0 deletions

View File

@@ -123,6 +123,14 @@ public:
easy.SetVerifyPeer(value);
}
void SetProxyVerifyHost(bool value) {
easy.SetOption(CURLOPT_PROXY_SSL_VERIFYHOST, value ? 2L : 0L);
}
void SetProxyVerifyPeer(bool value) {
easy.SetOption(CURLOPT_PROXY_SSL_VERIFYPEER, value);
}
void SetNoBody(bool value=true) {
easy.SetNoBody(value);
}