瀏覽代碼

Remove addrinfo flags

Remove flags since they require the network to be up and routable for no reason.
tags/1.3
bjoe2k4 10 年之前
父節點
當前提交
10e8b8214d
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      postsrsd.c

+ 1
- 1
postsrsd.c 查看文件

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

Loading…
取消
儲存