Omit "inet6" from ssh -Qaddressfamily when unsupported

This commit is contained in:
Darren Tucker committed 2026-11-02 18:13:17 +11:00
1 parent 0887340b43
commit 57fdc25ae9
1 file changed
+4
+4
View File
@@ -3630,6 +3630,10 @@ supported_address_family(void)
buf[0] = '\0';
for (i = 0; multistate_addressfamily[i].key != NULL; i++) {
#ifndef HAVE_GETADDRINFO
if (strcmp(multistate_addressfamily[i].key, "inet6") == 0)
continue;
#endif
strlcat(buf, multistate_addressfamily[i].key, sizeof(buf));
strlcat(buf, "\n", sizeof(buf));
}