diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-01-09 15:09:44 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-01-09 15:09:44 +0200 |
| commit | 566980d1e22f8c914796f0d62a20bbed3e20ce6b (patch) | |
| tree | 8d4a1649a22fe18a5f2747010921ada1abb92c15 /internal/client | |
| parent | dde822c8e37e973ddf82c00b5406c5e1b1a4268b (diff) | |
Fixed gosec issues
Diffstat (limited to 'internal/client')
| -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 } } |
