decline transit tunnel to duplicated router

This commit is contained in:
orignal committed 2025-01-31 11:20:39 -05:00
1 parent eadeea76e7
commit 972b66f9a5
3 files changed
+46 -19

No files matched your search

+9
View File
@@ -278,6 +278,15 @@ namespace data
return it->second->IsUnreachable ();
return false;
}
bool IsRouterDuplicated (const IdentHash& identHash)
{
std::lock_guard<std::mutex> l(g_ProfilesMutex);
auto it = g_Profiles.find (identHash);
if (it != g_Profiles.end ())
return it->second->IsDuplicated ();
return false;
}
void InitProfilesStorage ()
{