allow late init of ssl

This commit is contained in:
John
2023-05-18 12:04:42 +02:00
parent 4886b016f3
commit ec6dae6abb
2 changed files with 6 additions and 2 deletions
+1
View File
@@ -316,6 +316,7 @@ bool HttpClient::parseUrl(const string& url, string* proto, string* host, uint16
bool HttpClient::connect(const string& host, const uint16_t port, bool https, const string& userAgent,
const int timeout) {
initialize();
disconnect();
#ifdef HAVE_SSL
m_socket = SSLSocket::connect(host, port, https, timeout, m_caFile, m_caPath);