1
0
mirror of https://github.com/fumiama/terasu.git synced 2026-06-12 14:10:32 +08:00

feat: new implementations

This commit is contained in:
源文雨
2024-04-19 00:12:45 +09:00
parent b7e45bc58e
commit 719e0c1683
15 changed files with 682 additions and 162 deletions

View File

@@ -21,7 +21,7 @@ func TestHTTPDialTLS13(t *testing.T) {
ServerName: "huggingface.co",
InsecureSkipVerify: true,
})
err = Use(tlsConn).Handshake()
err = Use(tlsConn).Handshake(4)
if err != nil {
_ = tlsConn.Close()
return nil, err
@@ -59,7 +59,7 @@ func TestHTTPDialTLS12(t *testing.T) {
InsecureSkipVerify: true,
MaxVersion: tls.VersionTLS12,
})
err = Use(tlsConn).Handshake()
err = Use(tlsConn).Handshake(4)
if err != nil {
_ = tlsConn.Close()
return nil, err