2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 13:37:55 +00:00

now allowed incoming commands from bigtool via the cfg manager

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@277 e5f2f494-b856-4b98-b285-d166d9295462
This commit is contained in:
JINMEI Tatuya
2009-10-31 00:48:39 +00:00
parent 1d24a900d1
commit 0794e56fdd

View File

@@ -72,17 +72,12 @@ CommandSession::getCommand(int counter) {
session_.group_sendmsg(resp, "statistics"); session_.group_sendmsg(resp, "statistics");
} }
} else { } else {
cmd = data->get("command"); cmd = data->get("zone_added");
if (cmd != NULL)
return std::pair<string, string>("addzone", cmd->string_value());
cmd = data->get("zone_deleted");
if (cmd != NULL) { if (cmd != NULL) {
ep = cmd->get(0); return std::pair<string, string>("delzone", cmd->string_value());
if (ep != NULL) {
s = ep->string_value();
if (s == "addzone" || s == "delzone") {
return std::pair<string, string>(s,
cmd->get(1)->string_value());
}
return std::pair<string, string>(s, "");
}
} }
} }