mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Use IPPROTO_IP
This commit is contained in:
parent
b1f8e986bf
commit
4854a694cd
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue