mirror of
https://github.com/openssh/openssh-portable.git
synced 2026-11-06 05:16:43 +00:00
Omit "inet6" from ssh -Qaddressfamily when unsupported
This commit is contained in:
1 file changed
+4
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user