input/curl: move code to CreateEasy()

This commit is contained in:
Max Kellermann
2023-09-17 14:13:03 +02:00
parent fb2e0f734e
commit e831af35fd
3 changed files with 41 additions and 57 deletions

View File

@@ -125,6 +125,14 @@ public:
SetOption(CURLOPT_SSL_VERIFYPEER, (long)value);
}
void SetProxyVerifyHost(bool value) {
SetOption(CURLOPT_PROXY_SSL_VERIFYHOST, value ? 2L : 0L);
}
void SetProxyVerifyPeer(bool value) {
SetOption(CURLOPT_PROXY_SSL_VERIFYPEER, value);
}
void SetConnectTimeout(long timeout) {
SetOption(CURLOPT_CONNECTTIMEOUT, timeout);
}