1
0
mirror of synced 2025-06-12 07:41:53 +03:00

Added set_address_family

This commit is contained in:
yhirose
2021-04-13 20:49:52 -04:00
parent d122ff3ca8
commit 6cc2edce99
2 changed files with 22 additions and 7 deletions

View File

@ -3137,7 +3137,7 @@ static bool send_request(time_t read_timeout_sec, const std::string &req,
auto error = Error::Success;
auto client_sock =
detail::create_client_socket(HOST, PORT, false, nullptr,
detail::create_client_socket(HOST, PORT, AF_UNSPEC, false, nullptr,
/*timeout_sec=*/5, 0, std::string(), error);
if (client_sock == INVALID_SOCKET) { return false; }