diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-01-10 12:15:01 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-01-10 12:28:59 +0100 |
| commit | b51831b6361dde4e63fa38bfd968ff729ab72dc5 (patch) | |
| tree | 0d99fac1de8454d42aa5a13448c6f9e96dc5a4ea /client/client.go | |
| parent | ff70e291c96de23ae4dab20f9c4e9f895eee53d5 (diff) | |
Client + Discovery: Implement further organizations expiry
Diffstat (limited to 'client/client.go')
| -rw-r--r-- | client/client.go | 5 |
1 files changed, 5 insertions, 0 deletions
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() } |
