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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user