From 164729a70134f8e2ede34176501dc1e648ce72e6 Mon Sep 17 00:00:00 2001 From: Gaukas Wang Date: Thu, 2 May 2024 10:57:44 -0700 Subject: [PATCH] fix: cipherSuitesTLS13 linked to crypto/tls (#35) This linkage issue caused the testing to fail, since we are modifying the available Cipher Suites from the TLS provider (crypto/tls -> utls) to manipulate the selection results. Signed-off-by: Gaukas Wang --- .github/workflows/go_build.yml | 3 ++- internal/qtls/cipher_suite.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go_build.yml b/.github/workflows/go_build.yml index e811ade6..b69fafb6 100644 --- a/.github/workflows/go_build.yml +++ b/.github/workflows/go_build.yml @@ -3,7 +3,8 @@ name: "Go Build" -on: [push, pull_request] +# on: [push, pull_request] +on: push # no need to double-run on PR if we are running on all pushes already jobs: build: diff --git a/internal/qtls/cipher_suite.go b/internal/qtls/cipher_suite.go index e13cdcfd..fdb2553d 100644 --- a/internal/qtls/cipher_suite.go +++ b/internal/qtls/cipher_suite.go @@ -7,7 +7,7 @@ import ( tls "github.com/refraction-networking/utls" ) -//go:linkname cipherSuitesTLS13 crypto/tls.cipherSuitesTLS13 +//go:linkname cipherSuitesTLS13 github.com/refraction-networking/utls.cipherSuitesTLS13 var cipherSuitesTLS13 []unsafe.Pointer //go:linkname defaultCipherSuitesTLS13 crypto/tls.defaultCipherSuitesTLS13