Skip to content

Commit

Permalink
force use of IPv4 in libssl (see #751)
Browse files Browse the repository at this point in the history
  • Loading branch information
john30 committed May 31, 2023
1 parent e2a4695 commit 30cf1a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/utils/httpclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ SSLSocket* SSLSocket::connect(const string& host, const uint16_t& port, bool htt
break;
}
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)) {
break;
}
Expand Down

0 comments on commit 30cf1a9

Please sign in to comment.