mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +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:
@@ -11107,7 +11107,7 @@ listenelt_fromconfig(const cfg_obj_t *listener, const cfg_obj_t *config,
|
|||||||
}
|
}
|
||||||
} else if (http && !do_tls) {
|
} else if (http && !do_tls) {
|
||||||
if (named_g_httpport != 0) {
|
if (named_g_httpport != 0) {
|
||||||
port = named_g_port;
|
port = named_g_httpport;
|
||||||
} else {
|
} else {
|
||||||
result = named_config_getport(
|
result = named_config_getport(
|
||||||
config, "http-port", &port);
|
config, "http-port", &port);
|
||||||
|
Reference in New Issue
Block a user