Remember that the port was set in host and nslookup

Set 'port_set = true;' so that the TCP/DOT/DOH code doesn't reset
the port when making connections.

(cherry picked from commit 8caa94bdf1)
This commit is contained in:
Mark Andrews 2022-12-05 09:21:35 +11:00
parent e1234f66c6
commit 0569fa0d25
2 changed files with 2 additions and 0 deletions

View file

@ -854,6 +854,7 @@ parse_args(bool is_batchfile, int argc, char **argv) {
break;
case 'p':
port = atoi(isc_commandline_argument);
port_set = true;
break;
}
}

View file

@ -582,6 +582,7 @@ set_port(const char *value) {
isc_result_t result = parse_uint(&n, value, 65535, "port");
if (result == ISC_R_SUCCESS) {
port = (uint16_t)n;
port_set = true;
}
}