Browse Source

Merge pull request #28 from bjoe2k4/master

Remove addrinfo flags
tags/1.3
Timo Röhling 10 years ago
parent
commit
b161cb4358
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      postsrsd.c

+ 1
- 1
postsrsd.c View File

58
   memset (&hints, 0, sizeof(hints));
58
   memset (&hints, 0, sizeof(hints));
59
   hints.ai_family = family;
59
   hints.ai_family = family;
60
   hints.ai_socktype = SOCK_STREAM;
60
   hints.ai_socktype = SOCK_STREAM;
61
-  hints.ai_flags = AI_ADDRCONFIG | AI_V4MAPPED;
61
+
62
   err = getaddrinfo(NULL, service, &hints, &addr);
62
   err = getaddrinfo(NULL, service, &hints, &addr);
63
   if (err != 0) {
63
   if (err != 0) {
64
     fprintf(stderr, "%s: bind_service(%s): %s\n", self, service, gai_strerror(err));
64
     fprintf(stderr, "%s: bind_service(%s): %s\n", self, service, gai_strerror(err));

Loading…
Cancel
Save