aboutsummaryrefslogtreecommitdiffstats
path: root/sockets.c
diff options
context:
space:
mode:
Diffstat (limited to 'sockets.c')
-rw-r--r--sockets.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sockets.c b/sockets.c
index ef35220..e1f7ad3 100644
--- a/sockets.c
+++ b/sockets.c
@@ -750,6 +750,9 @@ sock_address_list_create( const char* hostname,
else
ai.ai_flags |= AI_CANONNAME;
+ if (flags & SOCKET_LIST_DGRAM)
+ ai.ai_socktype = SOCK_DGRAM;
+
while (1) {
struct addrinfo hints = ai;