1
0
mirror of synced 2025-07-30 22:03:07 +03:00

Added set_ipv6_v6only method (#1905)

* Added `set_ipv6_v6only` method

* Adjust the place where socket_options is called
This commit is contained in:
yhirose
2024-09-01 07:52:24 -04:00
committed by GitHub
parent 6cdd3493a1
commit 88277139e7
2 changed files with 60 additions and 39 deletions

View File

@ -4652,7 +4652,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, AF_UNSPEC, false, nullptr,
HOST, "", PORT, AF_UNSPEC, false, false, nullptr,
/*connection_timeout_sec=*/5, 0,
/*read_timeout_sec=*/5, 0,
/*write_timeout_sec=*/5, 0, std::string(), error);