diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-01-07 19:02:14 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-01-07 19:02:14 +0200 |
| commit | 4e2ca64319f17867ac63a8d1283a67e2f1c4daba (patch) | |
| tree | b4f2f1157dd5b590e33018f9e527ce767c0ed95e /internal/client/gateway | |
| parent | 4c2672b4970613f9db072231ed4ac07845e431d7 (diff) | |
Fixed all high and medium security issues from gosec
Diffstat (limited to 'internal/client/gateway')
| -rw-r--r-- | internal/client/gateway/gateway.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/client/gateway/gateway.go b/internal/client/gateway/gateway.go index 9709968..df1503f 100644 --- a/internal/client/gateway/gateway.go +++ b/internal/client/gateway/gateway.go @@ -46,6 +46,7 @@ func init() { tlsConfig = &tls.Config{ RootCAs: certPool, ServerName: "localhost", + MinVersion: tls.VersionTLS12, } } @@ -145,7 +146,7 @@ func handleAuth(ctx context.Context, conn net.Conn, privKey ed25519.PrivateKey) } bytesRead += n } - id := snowflake.ID(binary.BigEndian.Uint64(idBytes[:])) + id := snowflake.ID(binary.BigEndian.Uint64(idBytes[:])) // #nosec G115 return id, nil } |
