From 895112235b9239d8db9f129451605e1e8b9c2a12 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 3 Jul 2024 12:18:43 +0200 Subject: Client: Fetch disco fresh after startup calling GetConfig --- internal/discovery/discovery.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/discovery') diff --git a/internal/discovery/discovery.go b/internal/discovery/discovery.go index fe72e7c..ad083b3 100644 --- a/internal/discovery/discovery.go +++ b/internal/discovery/discovery.go @@ -147,6 +147,12 @@ func (discovery *Discovery) MarkOrganizationsExpired() { discovery.OrganizationList.Timestamp = time.Time{} } +// MarkServersExpired marks the servers as expired +func (discovery *Discovery) MarkServersExpired() { + // Re-initialize the timestamp to zero + discovery.ServerList.Timestamp = time.Time{} +} + // DetermineOrganizationsUpdate returns a boolean indicating whether or not the discovery organizations should be updated // https://github.com/eduvpn/documentation/blob/v3/SERVER_DISCOVERY.md // - [IMPLEMENTED] on "first launch" when offering the search for "Institute Access" and "Organizations"; -- cgit v1.2.3