diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-07-11 16:07:15 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-07-19 18:32:12 +0300 |
| commit | dc6c10155c33033b386665e7882b91be9837f55a (patch) | |
| tree | 64ca15fdb2aec5a17c93bae99508f70e61b951a6 /internal/client/gateway/gateway.go | |
| parent | 86c3f3f730dd8867f4d5df6fef428df36ff2d193 (diff) | |
Added anonymous_device_analytics option on the client and added cache
dir to store things like device ID and TOS hashes (only storing device
ID currently)
Diffstat (limited to 'internal/client/gateway/gateway.go')
| -rw-r--r-- | internal/client/gateway/gateway.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/client/gateway/gateway.go b/internal/client/gateway/gateway.go index 20ca777..ef4f31a 100644 --- a/internal/client/gateway/gateway.go +++ b/internal/client/gateway/gateway.go @@ -63,16 +63,16 @@ func connect(ctx context.Context) error { tlsConfig := &tls.Config{ RootCAs: certPool, - ServerName: config.Read().ServerName, + ServerName: config.ReadConfig().ServerName, MinVersion: tls.VersionTLS12, // This is fine, it's always false by default // The user may change the config, the name should be clear enough // that this is insecure (valid use cases are for testing purposes) - InsecureSkipVerify: config.Read().InsecureDebugMode, // #nosec 402 + InsecureSkipVerify: config.ReadConfig().InsecureDebugMode, // #nosec 402 } - address := config.Read().ServerName - if config.Read().InsecureDebugMode { + address := config.ReadConfig().ServerName + if config.ReadConfig().InsecureDebugMode { address = "localhost" } |
