From dc6c10155c33033b386665e7882b91be9837f55a Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 11 Jul 2025 16:07:15 +0300 Subject: 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) --- internal/client/gateway/gateway.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/client/gateway') 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" } -- cgit v1.3.1