diff options
Diffstat (limited to 'ext/socket')
-rw-r--r-- | ext/socket/socket.c | 1 |
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) { |