Browse Source

Revert "Bind to both ipv4 and ipv6 by default."

This reverts commit cdb223542a.
tags/1.3
bjoe2k4 10 years ago
parent
commit
1e2f2d535d
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      postsrsd.c

+ 2
- 2
postsrsd.c View File

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

Loading…
Cancel
Save