fix for older compilers

This commit is contained in:
John
2022-09-18 18:08:59 +02:00
parent 1a90cd874d
commit 7d8a87111a
3 changed files with 14 additions and 18 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ SSLSocket* SSLSocket::connect(const string& host, const uint16_t& port, bool htt
time_t until = time(nullptr) + (timeout <= 3 ? 3 : timeout); // at least 3 seconds
if (!https) {
do {
bio = BIO_new_connect(hostPort.c_str());
bio = BIO_new_connect((char*)hostPort.c_str());
if (isError("connect", bio)) {
break;
}