Remove bogus servers

This commit is contained in:
Your Name
2025-05-04 20:04:47 +12:00
parent 008cf59c48
commit aeaf57e196
3 changed files with 7 additions and 1 deletions

View File

@@ -45,10 +45,10 @@ namespace localfile {
namespace localpath {
std::string server(const std::string &server_name) {
if (server_name.empty()) return "";
for (std::filesystem::path dir : gConfig().get_local_server_definition_paths())
if (fs::exists(dir / server_name))
return dir / server_name;
return "";
}