chore(lint): bump linter from v2.4.0 to v2.11.4

This commit is contained in:
Quentin McGaw
2026-08-05 14:26:21 +00:00
parent d994ce5809
commit 3ae441e862
24 changed files with 35 additions and 29 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ func (c cipherDESCBC) Encrypt(key, iv, plaintext []byte) ([]byte, error) {
ciphertext := make([]byte, len(plaintext)+paddingLen)
copy(ciphertext, plaintext)
copy(ciphertext[len(plaintext):],
bytes.Repeat([]byte{byte(paddingLen)}, paddingLen))
bytes.Repeat([]byte{byte(paddingLen)}, paddingLen)) //nolint:gosec
blockEncrypter.CryptBlocks(ciphertext, ciphertext)
return ciphertext, nil
}
+2 -1
View File
@@ -26,7 +26,8 @@ func start(ctx context.Context, starter CmdStarter, version string, flags []stri
return nil, nil, nil, fmt.Errorf("OpenVPN version is unknown: %s", version)
}
args := []string{"--config", configPath}
args := make([]string, 0, 2+len(flags)) //nolint:mnd
args = append(args, "--config", configPath)
args = append(args, flags...)
cmd := exec.CommandContext(ctx, bin, args...)
setCmdSysProcAttr(cmd)