2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

use named_g_httpport correctly when creating listeners

when the default http port was set on the command line, it was
not used correctly by listeners. [GL #2902]
This commit is contained in:
Evan Hunt
2021-09-13 14:03:51 -07:00
parent 5a9b302e43
commit 7bf61a6d7f

View File

@@ -11107,7 +11107,7 @@ listenelt_fromconfig(const cfg_obj_t *listener, const cfg_obj_t *config,
}
} else if (http && !do_tls) {
if (named_g_httpport != 0) {
port = named_g_port;
port = named_g_httpport;
} else {
result = named_config_getport(
config, "http-port", &port);