Added set_address_family
This commit is contained in:
parent
d122ff3ca8
commit
6cc2edce99
2 changed files with 22 additions and 7 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue