2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-02 15:05:16 +00:00

[#3694] apply tls settings on reload

This commit is contained in:
Razvan Becheriu
2025-01-08 20:53:31 +02:00
parent 6fcbddce6f
commit 1334b83c8a
18 changed files with 1932 additions and 84 deletions

View File

@@ -338,15 +338,10 @@ void configureCommandChannel() {
ConstElementPtr current_http_config =
CfgMgr::instance().getCurrentCfg()->getHttpControlSocketInfo();
sock_changed = (http_config && current_http_config &&
!http_config->equals(*current_http_config));
if (!http_config || !current_http_config || sock_changed) {
if (http_config) {
HttpCommandMgr::instance().openCommandSockets(http_config);
} else if (current_http_config) {
HttpCommandMgr::instance().closeCommandSockets();
}
if (http_config) {
HttpCommandMgr::instance().openCommandSockets(http_config);
} else if (current_http_config) {
HttpCommandMgr::instance().closeCommandSockets();
}
}