chore: Enable G102 rule for gosec (#12976)

Co-authored-by: Pawel Zak <Pawel Zak>
This commit is contained in:
Paweł Żak 2023-03-29 09:47:57 +02:00 committed by GitHub
parent 7088ec1313
commit 0129abbd1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -81,6 +81,7 @@ linters-settings:
# Available rules: https://github.com/securego/gosec#available-rules
# Default: [] - means include all rules
includes:
- G102
- G106
- G108
- G109

View File

@ -20,7 +20,7 @@ func TestSocks5ProxyConfigIntegration(t *testing.T) {
proxyPassword = "password"
)
l, err := net.Listen("tcp", "0.0.0.0:0")
l, err := net.Listen("tcp", "127.0.0.1:0")
require.NoError(t, err)
server, err := socks5.New(&socks5.Config{