This commit is contained in:
parent
1df0a2cfd2
commit
62c89394db
@ -511,14 +511,14 @@ void handlers::handle_post_add_mount(const httplib::Request &req,
|
|||||||
for (const auto &[key, value] : cfg.items()) {
|
for (const auto &[key, value] : cfg.items()) {
|
||||||
if (value.is_object()) {
|
if (value.is_object()) {
|
||||||
for (const auto &[key2, value2] : value.items()) {
|
for (const auto &[key2, value2] : value.items()) {
|
||||||
auto subKey = fmt::format("{}.{}", key, key2);
|
auto sub_key = fmt::format("{}.{}", key, key2);
|
||||||
auto skip{false};
|
auto skip{false};
|
||||||
auto decrypted = decrypt_value(
|
auto decrypted = decrypt_value(
|
||||||
config_, subKey, value2.template get<std::string>(), skip);
|
config_, sub_key, value2.template get<std::string>(), skip);
|
||||||
if (skip) {
|
if (skip) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
values[subKey] = decrypted;
|
values[sub_key] = decrypted;
|
||||||
}
|
}
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user