1
0
mirror of https://github.com/fumiama/terasu-cloudflared.git synced 2026-06-08 20:10:25 +08:00

feat: embed terasu inside

This commit is contained in:
源文雨
2025-12-21 16:51:38 +08:00
parent 0d2a7a0385
commit f99b9330df
23 changed files with 1195 additions and 18 deletions

View File

@@ -14,6 +14,7 @@ import (
"strings"
"time"
"github.com/fumiama/terasu"
"github.com/gobwas/httphead"
"github.com/gobwas/pool/pbufio"
)
@@ -231,6 +232,7 @@ func (d Dialer) dial(ctx context.Context, u *url.URL) (conn net.Conn, err error)
if err != nil {
return nil, err
}
conn = terasu.NewConn(conn)
tlsClient := d.TLSClient
if tlsClient == nil {
tlsClient = d.tlsClient