MCPcopy
hub / github.com/XTLS/REALITY / Dial

Method Dial

tls.go:670–672  ·  view source on GitHub ↗

Dial connects to the given network address and initiates a TLS handshake, returning the resulting TLS connection. The returned [Conn], if any, will always be of type *[Conn]. Dial uses context.Background internally; to specify the context, use [Dialer.DialContext].

(network, addr string)

Source from the content-addressed store, hash-verified

668// Dial uses context.Background internally; to specify the context,
669// use [Dialer.DialContext].
670func (d *Dialer) Dial(network, addr string) (net.Conn, error) {
671 return d.DialContext(context.Background(), network, addr)
672}
673
674func (d *Dialer) netDialer() *net.Dialer {
675 if d.NetDialer != nil {

Callers 1

Calls 1

DialContextMethod · 0.95

Tested by

no test coverage detected