Disable CURLOPT_SSL_VERIFYHOST on OSX, since it doesn't work (with

osx's curl version at least).
This commit is contained in:
hiker 2014-12-10 12:23:35 +11:00
parent b592e5224b
commit 93b4aa15c2

View File

@ -194,7 +194,11 @@ namespace Online
else
curl_easy_setopt(m_curl_session, CURLOPT_SSL_VERIFYPEER, 0L);
#ifdef __APPLE__
curl_easy_setopt(m_curl_session, CURLOPT_SSL_VERIFYHOST, 0L);
#else
curl_easy_setopt(m_curl_session, CURLOPT_SSL_VERIFYHOST, 1L);
#endif
}
} // prepareOperation