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/config/config.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/config') diff --git a/internal/config/config.go b/internal/config/config.go index 04132ee..5ac01c4 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -33,6 +33,11 @@ func (c *Config) Discovery() *discovery.Discovery { return &c.V2.Discovery } +// HasSecureInternet returns whether or not the configuration has a secure internet server +func (c *Config) HasSecureInternet() bool { + return c.V2.HasSecureInternet() +} + // Save saves the state file to disk func (c *Config) Save() error { if err := util.EnsureDirectory(c.directory); err != nil { -- cgit v1.2.3