Skip to content

Commit

Permalink
chore: Enable G102 rule for gosec (#12976)
Browse files Browse the repository at this point in the history
Co-authored-by: Pawel Zak <Pawel Zak>
  • Loading branch information
zak-pawel authored Mar 29, 2023
1 parent 7088ec1 commit 0129abb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/common/proxy/socks5_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 0129abb

Please sign in to comment.