[feat] add application-layer trusted device authentication

This commit is contained in:
dijunkun
2026-11-01 23:26:48 +08:00
parent b999a01e66
commit e15e2c33bd
16 changed files with 699 additions and 18 deletions
@@ -443,6 +443,12 @@ void GuiRuntime::CloseConnectionPeer() {
announcements_.Reset();
return;
}
{
std::lock_guard lock(controller_trust_mutex_);
std::erase_if(controller_trust_, [this](const auto& item) {
return item.second.events == peer_events_.get();
});
}
peer_events_->StopAccepting();
transfers_.Cancel(peer_events_.get());
announcements_.Reset();