summaryrefslogtreecommitdiff
path: root/internal/client/gateway/gateway.go
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-01-09 15:09:44 +0200
committerKyren223 <Kyren223@proton.me>2025-01-09 15:09:44 +0200
commit566980d1e22f8c914796f0d62a20bbed3e20ce6b (patch)
tree8d4a1649a22fe18a5f2747010921ada1abb92c15 /internal/client/gateway/gateway.go
parentdde822c8e37e973ddf82c00b5406c5e1b1a4268b (diff)
Fixed gosec issues
Diffstat (limited to 'internal/client/gateway/gateway.go')
-rw-r--r--internal/client/gateway/gateway.go5
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
}
}