Skip to content

Commit 4854a69

Browse files
committed
Use IPPROTO_IP
1 parent b1f8e98 commit 4854a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -3262,7 +3262,7 @@ socket_t create_socket(const std::string &host, const std::string &ip, int port,
32623262

32633263
memset(&hints, 0, sizeof(struct addrinfo));
32643264
hints.ai_socktype = SOCK_STREAM;
3265-
hints.ai_protocol = 0;
3265+
hints.ai_protocol = IPPROTO_IP;
32663266

32673267
if (!ip.empty()) {
32683268
node = ip.c_str();

0 commit comments

Comments
 (0)