diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 0fba7877d..eb9c2032b 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -938,7 +938,7 @@ void CConfigManager::parseLine(std::string& line) { const auto LASTSEP = currentCategory.find_last_of(':'); - if (LASTSEP == std::string::npos || currentCategory.contains("device:")) + if (LASTSEP == std::string::npos || currentCategory.contains("device")) currentCategory = ""; else currentCategory = currentCategory.substr(0, LASTSEP);