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 <i@gaukas.wang>
This commit is contained in:
Gaukas Wang 2024-05-02 10:57:44 -07:00 committed by GitHub
parent b24875057d
commit 164729a701
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -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:

View file

@ -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