summaryrefslogtreecommitdiffstats
path: root/src/bin/agent/ca_process.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/agent/ca_process.cc')
-rw-r--r--src/bin/agent/ca_process.cc18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/bin/agent/ca_process.cc b/src/bin/agent/ca_process.cc
index 2403eedb1a..86dec95e36 100644
--- a/src/bin/agent/ca_process.cc
+++ b/src/bin/agent/ca_process.cc
@@ -181,15 +181,29 @@ CtrlAgentProcess::configure(isc::data::ConstElementPtr config_set,
// active listeners. The next step will be to remove all other
// active listeners, but we do it inside the main process loop.
http_listeners_.push_back(http_listener);
+ } else if (!http_listeners_.empty()) {
+ // Reconfig keeping the same address and port.
+ if (http_listeners_.back()->getTlsContext()) {
+ LOG_INFO(agent_logger, CTRL_AGENT_HTTPS_SERVICE_REUSED)
+ .arg(server_address.toText())
+ .arg(server_port);
+ } else {
+ LOG_INFO(agent_logger, CTRL_AGENT_HTTP_SERVICE_REUSED)
+ .arg(server_address.toText())
+ .arg(server_port);
+ }
+ return;
}
// Ok, seems we're good to go.
if (use_https) {
LOG_INFO(agent_logger, CTRL_AGENT_HTTPS_SERVICE_STARTED)
- .arg(server_address.toText()).arg(server_port);
+ .arg(server_address.toText())
+ .arg(server_port);
} else {
LOG_INFO(agent_logger, CTRL_AGENT_HTTP_SERVICE_STARTED)
- .arg(server_address.toText()).arg(server_port);
+ .arg(server_address.toText())
+ .arg(server_port);
}
});