[BUGFIX] Command-line option -6 now works correctly.

This commit is contained in:
Dmitri Tikhonov 2018-05-18 10:39:21 -04:00
parent 7a9b83ff9d
commit 63a83dd17a
2 changed files with 2 additions and 3 deletions

View file

@ -2,6 +2,7 @@
- Improve checks of number of incoming streams limit and associated - Improve checks of number of incoming streams limit and associated
error reporting. error reporting.
- [BUGFIX] Command-line option `-6` now works correctly.
2018-05-16 2018-05-16

View file

@ -460,10 +460,8 @@ main (int argc, char **argv)
{ {
switch (opt) { switch (opt) {
case '4': case '4':
prog.prog_ipver = 4;
break;
case '6': case '6':
prog.prog_ipver = 4; prog.prog_ipver = opt - '0';
break; break;
case 'I': case 'I':
client_ctx.hcc_flags |= HCC_ABORT_ON_INCOMPLETE; client_ctx.hcc_flags |= HCC_ABORT_ON_INCOMPLETE;