diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index c18a0df..e829d20 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -27,8 +27,8 @@ jobs: go-version: '1.19' - name: golangci-lint - uses: golangci/golangci-lint-action@v4 + uses: golangci/golangci-lint-action@v6 with: - version: v1.56.2 + version: v1.60.1 skip-pkg-cache: true skip-build-cache: true diff --git a/go.mod b/go.mod index baab6be..4709ed9 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/theodorsm/covert-dtls -go 1.19 +go 1.20 require ( github.com/google/gopacket v1.1.19 diff --git a/pkg/randomize/cipher_suite.go b/pkg/randomize/cipher_suite.go index 183d9c6..c1d9405 100644 --- a/pkg/randomize/cipher_suite.go +++ b/pkg/randomize/cipher_suite.go @@ -31,7 +31,7 @@ func encodeCipherSuiteIDs(cipherSuiteIDs []uint16) []byte { return out } -// nolint:typecheck +//nolint:typecheck func DefaultCipherSuites() []dtls.CipherSuiteID { return []dtls.CipherSuiteID{ dtls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, diff --git a/pkg/randomize/util.go b/pkg/randomize/util.go index 73796bd..e1955f7 100644 --- a/pkg/randomize/util.go +++ b/pkg/randomize/util.go @@ -4,7 +4,7 @@ import ( "math/rand/v2" ) -// nolint:typecheck +//nolint:typecheck func randRange(min, max int) int { return rand.IntN(max-min+1) + min }