From fe2d0cd56bb206ff14567640224110095b497885 Mon Sep 17 00:00:00 2001 From: Fabrice Aneche Date: Tue, 17 Sep 2024 22:31:17 -0400 Subject: [PATCH] lint nolint Signed-off-by: Fabrice Aneche --- .github/workflows/go.yml | 2 +- cmd/sshjump/server.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 863677c..d70d871 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 diff --git a/cmd/sshjump/server.go b/cmd/sshjump/server.go index 21628bb..4efdb80 100644 --- a/cmd/sshjump/server.go +++ b/cmd/sshjump/server.go @@ -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") @@ -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")