Compare commits

...

2 Commits

Author SHA1 Message Date
Jędrzej Stuczyński 6fd40e104f force client to use auth v1 2025-03-11 08:45:55 +00:00
Jon Häggblad 987ef5114c Always purge sender tags on startup 2025-03-09 00:42:17 +01:00
2 changed files with 9 additions and 3 deletions
@@ -120,6 +120,13 @@ impl Backend {
manager.delete_all_tags().await?;
}
// We ran into a bug where the client was re-using the same sender tag while connected to
// different gateways. This does not work since changing the gateway changes the
// nym-addres.
// A stop-gap solution is to always purge the tags when the client is started.
// When writing this I'm not yet sure what the correct solution is.
manager.delete_all_tags().await?;
Ok(Backend {
temporary_old_path: None,
database_path: owned_path,
@@ -683,7 +683,7 @@ impl<C, St> GatewayClient<C, St> {
}
if self.shared_key.is_some() {
self.authenticate(supports_auth_v2).await?;
self.authenticate(false).await?;
if self.authenticated {
// if we are authenticated it means we MUST have an associated shared_key
@@ -1016,8 +1016,7 @@ impl<C, St> GatewayClient<C, St> {
}
// if we're reconnecting, because we lost connection, we need to re-authenticate the connection
self.authenticate(self.negotiated_protocol.supports_authenticate_v2())
.await?;
self.authenticate(false).await?;
// this call is NON-blocking
self.start_listening_for_mixnet_messages()?;