adig: fix `-T` option (#479)

Helper was missing flag to enable TCP mode of operation.

Fix By: @lifenjoiner
pull/485/head
lifenjoiner 2 years ago committed by GitHub
parent f0f1485542
commit e5f5d4b226
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/tools/adig.c

@ -296,6 +296,7 @@ int main(int argc, char **argv)
if (!ISDIGIT(*optarg))
usage();
options.tcp_port = (unsigned short)strtol(optarg, NULL, 0);
options.flags |= ARES_FLAG_USEVC;
optmask |= ARES_OPT_TCP_PORT;
break;

Loading…
Cancel
Save