Allow -4 option to be given multiple times when IPv6 is enabled.

pull/215/head
Norman Rasmussen 4 years ago
parent eac20347ba
commit e432f46e01

@ -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