Display the last connection time in dashboard/wivrnctl

This commit is contained in:
Guillaume Meunier
2025-03-25 21:15:01 +01:00
parent e0a1598ac5
commit 57a0cf1d4b
10 changed files with 252 additions and 57 deletions
+2
View File
@@ -275,6 +275,8 @@ void wivrn::wivrn_connection::init(std::stop_token stop_token, std::function<voi
.public_key = clean_key(headset_key.public_key()),
.name = crypto_handshake.name,
});
else if (state != encryption_state::disabled)
wivrn::update_last_connection_timestamp(clean_key(headset_key.public_key()));
}
void wivrn::wivrn_connection::reset(TCP && tcp, std::function<void()> tick)