Selaa lähdekoodia

Bind to both ipv4 and ipv6 by default.

tags/1.3
bjoe2k4 9 vuotta sitten
vanhempi
commit
cdb223542a
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      postsrsd.c

+ 2
- 2
postsrsd.c Näytä tiedosto

@@ -74,7 +74,7 @@ static int bind_service (const char *service, int family)
74 74
     flags = fcntl (sock, F_GETFL, 0);
75 75
     if (flags < 0) goto fail;
76 76
     if (fcntl(sock, F_SETFL, flags | O_NONBLOCK) < 0) goto fail;
77
-    break;
77
+    continue;
78 78
   fail:
79 79
     err = errno;
80 80
     if (sock >= 0) close (sock);
@@ -235,7 +235,7 @@ typedef void(*handle_t)(srs_t*, FILE*, const char*, const char*, const char**);
235 235
 
236 236
 int main (int argc, char **argv)
237 237
 {
238
-  int opt, timeout = 1800, family = AF_INET;
238
+  int opt, timeout = 1800, family = AF_UNSPEC;
239 239
   int daemonize = FALSE;
240 240
   char *forward_service = NULL, *reverse_service = NULL,
241 241
        *user = NULL, *domain = NULL, *chroot_dir = NULL;

Loading…
Peruuta
Tallenna