diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index c18a0df..fea05a7 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -24,11 +24,11 @@ jobs: - name: Setup go uses: actions/setup-go@v5 with: - go-version: '1.19' + go-version: '1.23' - 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..6316187 100644 --- a/pkg/randomize/cipher_suite.go +++ b/pkg/randomize/cipher_suite.go @@ -31,7 +31,6 @@ func encodeCipherSuiteIDs(cipherSuiteIDs []uint16) []byte { return out } -// 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..8628992 100644 --- a/pkg/randomize/util.go +++ b/pkg/randomize/util.go @@ -4,7 +4,6 @@ import ( "math/rand/v2" ) -// nolint:typecheck func randRange(min, max int) int { return rand.IntN(max-min+1) + min }