From f447f89d07e03ccd470895f1e382f1197976cd97 Mon Sep 17 00:00:00 2001 From: Shawn M Moore Date: Mon, 4 Dec 2023 00:05:29 -0500 Subject: [PATCH] Remember endpoint we authenticated against in returned SyncAuth (#2864) * Include endpoint we authed against in response * Add self to contributors --- CONTRIBUTORS | 1 + rslib/src/backend/sync.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 407b84437..9d80a8b09 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -152,6 +152,7 @@ Ben Olson Akash Reddy Lucio Sauer Gustavo Sales +Shawn M Moore ******************** diff --git a/rslib/src/backend/sync.rs b/rslib/src/backend/sync.rs index 5aa84014c..b89f10c9c 100644 --- a/rslib/src/backend/sync.rs +++ b/rslib/src/backend/sync.rs @@ -283,7 +283,7 @@ impl Backend { let sync_fut = sync_login( input.username, input.password, - input.endpoint, + input.endpoint.clone(), self.web_client().clone(), ); let abortable_sync = Abortable::new(sync_fut, abort_reg); @@ -293,7 +293,7 @@ impl Backend { }; ret.map(|a| anki_proto::sync::SyncAuth { hkey: a.hkey, - endpoint: None, + endpoint: input.endpoint, io_timeout_secs: None, }) }