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:
2
vendor/github.com/gobwas/ws/dialer.go
generated
vendored
2
vendor/github.com/gobwas/ws/dialer.go
generated
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user