aboutsummaryrefslogtreecommitdiffstats
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r--ext/socket/socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 54d181958c..601455e878 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -591,6 +591,7 @@ sock_addrinfo(host, port, flags)
MEMZERO(&hints, struct addrinfo, 1);
hints.ai_family = PF_UNSPEC;
+ hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = flags;
error = getaddrinfo(hostp, portp, &hints, &res);
if (error) {