From b51831b6361dde4e63fa38bfd968ff729ab72dc5 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 10 Jan 2023 12:15:01 +0100 Subject: Client + Discovery: Implement further organizations expiry --- client/client.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client/client.go') diff --git a/client/client.go b/client/client.go index 6dae665..c443528 100644 --- a/client/client.go +++ b/client/client.go @@ -188,6 +188,11 @@ func (c *Client) DiscoOrganizations() (orgs *types.DiscoveryOrganizations, err e return nil, errors.Errorf("discovery with Let's Connect is not supported") } + // Mark organizations as expired if we have not set an organization yet + if !c.Servers.HasSecureInternet() { + c.Discovery.MarkOrganizationsExpired() + } + return c.Discovery.Organizations() } -- cgit v1.2.3