diff options
Diffstat (limited to 'internal/client/gateway/gateway.go')
| -rw-r--r-- | internal/client/gateway/gateway.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/client/gateway/gateway.go b/internal/client/gateway/gateway.go index 04513de..99fccf5 100644 --- a/internal/client/gateway/gateway.go +++ b/internal/client/gateway/gateway.go @@ -48,7 +48,10 @@ func init() { RootCAs: certPool, ServerName: config.Read().ServerName, MinVersion: tls.VersionTLS12, - InsecureSkipVerify: config.Read().InsecureSkipServerVerification, + // 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().InsecureSkipServerVerification, //#nosec 402 } } |
