forked from mirrors/tftp-hpa-google
Allow the -4 option even in an IPv4-only configuration
Allow the -4 option even if IPv6 isn't compiled in.
This commit is contained in:
parent
4bdac0b536
commit
c3a5c712e2
4 changed files with 8 additions and 7 deletions
|
@ -221,10 +221,10 @@ int main(int argc, char *argv[])
|
|||
if (argv[arg][0] == '-') {
|
||||
for (optx = &argv[arg][1]; *optx; optx++) {
|
||||
switch (*optx) {
|
||||
#ifdef HAVE_IPV6
|
||||
case '4':
|
||||
ai_fam = AF_INET;
|
||||
break;
|
||||
#ifdef HAVE_IPV6
|
||||
case '6':
|
||||
ai_fam = AF_INET6;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue