Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
laduke committed Mar 14, 2024
1 parent 223061c commit 0c194cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/cpp-httplib/httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -3163,7 +3163,7 @@ socket_t create_socket(const std::string &host, const std::string &ip, int port,
if (socket_options) { socket_options(sock); }

if (rp->ai_family == AF_INET6) {
auto no = 0;
auto no = 1;
#ifdef _WIN32
setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY,
reinterpret_cast<const char *>(&no), sizeof(no));
Expand Down

0 comments on commit 0c194cb

Please sign in to comment.