diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-07-03 12:18:43 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-07-17 14:00:03 +0000 |
| commit | 895112235b9239d8db9f129451605e1e8b9c2a12 (patch) | |
| tree | 567ca70ff0c1c28097b8408303ca932f88d8b441 /internal/config/config.go | |
| parent | 04e49f0f61397c782649607163534249b05e87ae (diff) | |
Client: Fetch disco fresh after startup calling GetConfig
Diffstat (limited to 'internal/config/config.go')
| -rw-r--r-- | internal/config/config.go | 5 |
1 files changed, 5 insertions, 0 deletions
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 { |
