force use of IPv4 in libssl (see #751)
This commit is contained in:
@@ -234,6 +234,7 @@ SSLSocket* SSLSocket::connect(const string& host, const uint16_t& port, bool htt
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
BIO_set_info_callback(bio, bioInfoCallback);
|
BIO_set_info_callback(bio, bioInfoCallback);
|
||||||
|
BIO_set_conn_ip_family(bio, 4); // force IPv4 to circumvent docker IPv6 routing issues
|
||||||
if (isError("conn_hostname", BIO_set_conn_hostname(bio, hostPort.c_str()), 1)) {
|
if (isError("conn_hostname", BIO_set_conn_hostname(bio, hostPort.c_str()), 1)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user