2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#3542] do not open sockets in test mode

This commit is contained in:
Razvan Becheriu
2024-08-26 23:19:48 +03:00
parent 56a1b39131
commit 0fbb3acd8a
7 changed files with 39 additions and 4 deletions

View File

@@ -733,6 +733,10 @@ configureDhcp4Server(Dhcpv4Srv& server, isc::data::ConstElementPtr config_set,
LOG_DEBUG(dhcp4_logger, DBG_DHCP4_COMMAND, DHCP4_CONFIG_START)
.arg(server.redactConfig(config_set)->str());
if (check_only) {
MultiThreadingMgr::instance().setTestMode(true);
}
auto answer = processDhcp4Config(config_set);
int status_code = CONTROL_RESULT_SUCCESS;