We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 589d098 commit cb4b276Copy full SHA for cb4b276
src/common/socket.h
@@ -65,7 +65,7 @@ struct SockAddr {
65
memset(&hints, 0, sizeof(hints));
66
hints.ai_family = PF_UNSPEC;
67
hints.ai_flags = AI_PASSIVE;
68
- hints.ai_protocol = SOCK_STREAM;
+ hints.ai_socktype = SOCK_STREAM;
69
addrinfo *res = NULL;
70
int sig = getaddrinfo(host, NULL, &hints, &res);
71
CHECK(sig == 0 && res != NULL)
0 commit comments