mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-03 16:36:20 +03:00
removed flags that are not supported on some platforms and seem not to be required here
This commit is contained in:
1 parent
a9fe11c08b
commit
7876566085
1 file changed
+1
-1
+1
-1
@@ -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 ) {
|
||||
|
||||
Reference in new issue
Block a user