Merge branch '2902-fix-httpport' into 'main'

use named_g_httpport correctly when creating listeners

Closes #2902

See merge request isc-projects/bind9!5397
This commit is contained in:
Evan Hunt 2021-09-14 21:00:37 +00:00
commit 6077080f12

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);