From 7876566085a24f5ceca491b82bb3fc4914353cb9 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Fri, 17 Jun 2011 11:20:35 +0200 Subject: [PATCH] removed flags that are not supported on some platforms and seem not to be required here --- examples/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/server.c b/examples/server.c index c79c5eac..ce501ec7 100644 --- a/examples/server.c +++ b/examples/server.c @@ -321,7 +321,7 @@ get_context(const char *node, const char *port) { memset(&hints, 0, sizeof(struct addrinfo)); hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */ hints.ai_socktype = SOCK_DGRAM; /* Coap uses UDP */ - hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST | AI_NUMERICSERV | AI_ALL; + hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST; s = getaddrinfo(node, port, &hints, &result); if ( s != 0 ) {