summaryrefslogtreecommitdiff
path: root/internal/discovery
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-07-03 12:18:43 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-07-17 14:00:03 +0000
commit895112235b9239d8db9f129451605e1e8b9c2a12 (patch)
tree567ca70ff0c1c28097b8408303ca932f88d8b441 /internal/discovery
parent04e49f0f61397c782649607163534249b05e87ae (diff)
Client: Fetch disco fresh after startup calling GetConfig
Diffstat (limited to 'internal/discovery')
-rw-r--r--internal/discovery/discovery.go6
1 files changed, 6 insertions, 0 deletions
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";