{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":781297855,"defaultBranch":"master","name":"nsca","ownerLogin":"imre-sidn","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2024-04-03T05:48:56.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/147485768?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1712123373.0","currentOid":""},"activityList":{"items":[{"before":null,"after":"ff6df99683ecb817afd8219e48664133b7ffe873","ref":"refs/heads/fix-loopback-only-binding","pushedAt":"2024-04-03T05:49:33.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"imre-sidn","name":"Imre Jonk (SIDN)","path":"/imre-sidn","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/147485768?s=80&v=4"},"commit":{"message":"Don't use AI_ADDRCONFIG for bind addr translation\n\nFixes #52\n\nOn Linux, the getaddrinfo function returns EAI_NONAME when node is NULL,\nthe AI_ADDRCONFIG flag is set, and the system only has loopback\naddresses configured.\n\nQuoting getaddrinfo(3):\n> If hints.ai_flags includes the AI_ADDRCONFIG flag, then IPv4\n> addresses are returned in the list pointed to by res only if the\n> local system has at least one IPv4 address configured, and IPv6\n> addresses are returned only if the local system has at least one\n> IPv6 address configured. The loopback address is not considered\n> for this case as valid as a configured address. This flag is\n> useful on, for example, IPv4-only systems, to ensure that\n> getaddrinfo() does not return IPv6 socket addresses that would\n> always fail in connect(2) or bind(2).\n\nNote that the FreeBSD version of getaddrinfo(3) does not mention that\nthe loopback address is not considered a valid configured address.\n\nIt is desirable that binding to wildcard addresses (the default) also\nworks when no routable IP addresses are configured on the system. This\ncan be achieved by removing the AI_ADDRCONFIG flag.\n\nThe flag appears to have been set in order to optimize DNS query\ntraffic [1]. My testing however shows that no DNS querying takes place\nas a result of anything done in the wait_for_connections function, so I\nbelieve that this change has no performance impact.\n\n[1] https://fedoraproject.org/wiki/QA/Networking/NameResolution/ADDRCONFIG","shortMessageHtmlLink":"Don't use AI_ADDRCONFIG for bind addr translation"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEJkOtoAA","startCursor":null,"endCursor":null}},"title":"Activity ยท imre-sidn/nsca"}