From 4854a694cd8cb1b49ad9d7e5c803ec5c9179be42 Mon Sep 17 00:00:00 2001 From: yhirose Date: Tue, 3 Sep 2024 17:29:28 -0400 Subject: [PATCH] Use IPPROTO_IP --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index b7be298..3185dd7 100644 --- a/httplib.h +++ b/httplib.h @@ -3262,7 +3262,7 @@ socket_t create_socket(const std::string &host, const std::string &ip, int port, memset(&hints, 0, sizeof(struct addrinfo)); hints.ai_socktype = SOCK_STREAM; - hints.ai_protocol = 0; + hints.ai_protocol = IPPROTO_IP; if (!ip.empty()) { node = ip.c_str();