Merge pull request #215 from normanr/develop

Allow -4 option to be given multiple times when IPv6 is enabled.
pull/227/head
David Schweikert 3 years ago committed by GitHub
commit b4aeda17fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -546,7 +546,7 @@ int main(int argc, char** argv)
switch (c) {
case '4':
#ifdef IPV6
if (hints_ai_family != AF_UNSPEC) {
if (hints_ai_family != AF_UNSPEC && hints_ai_family != AF_INET) {
fprintf(stderr, "%s: can't specify both -4 and -6\n", prog);
exit(1);
}

Loading…
Cancel
Save