Security: skip more print_host related info

This commit is contained in:
SoftFever 2024-02-14 20:59:58 +08:00
parent 32418eb66e
commit 8d56490dad
3 changed files with 14 additions and 7 deletions

View file

@ -1835,7 +1835,7 @@ std::pair<Preset*, bool> PresetCollection::load_external_preset(
keys.erase(std::remove_if(keys.begin(), keys.end(),
[](std::string &val) {
return val == "print_host" || val == "print_host_webui" || val == "printhost_apikey" ||
val == "printhost_cafile";
val == "printhost_cafile" || val == "printhost_user" || val == "printhost_password" || val == "printhost_port";
}),
keys.end());
cfg.apply_only(combined_config, keys, true);