Skip to content

Commit

Permalink
lint nolint
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Aneche <[email protected]>
  • Loading branch information
akhenakh committed Sep 18, 2024
1 parent cc148b6 commit fe2d0cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60.3
version: v1.60.1
args: --timeout=5m --modules-download-mode=vendor ./...

- name: Test
Expand Down
4 changes: 2 additions & 2 deletions cmd/sshjump/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (srv *Server) DirectTCPIPHandler(
}
namespace := ds[1]
service := ds[2]
daddr, ok := ports.MatchingService(service, namespace, int32(d.DestPort)) // nolint:gosec
daddr, ok := ports.MatchingService(service, namespace, int32(d.DestPort))
if !ok {
_ = newChan.Reject(gossh.ConnectionFailed, "kubernetes destination not authorized")

Expand All @@ -202,7 +202,7 @@ func (srv *Server) DirectTCPIPHandler(
}
namespace := ds[0]
service := ds[1]
daddr, ok := ports.MatchingService(service, namespace, int32(d.DestPort)) // nolint:gosec
daddr, ok := ports.MatchingService(service, namespace, int32(d.DestPort))
if !ok {
newChan.Reject(gossh.ConnectionFailed, "kubernetes destination not authorized")

Expand Down

0 comments on commit fe2d0cd

Please sign in to comment.