MCPcopy Create free account
hub / github.com/XTLS/Go / Dial

Method Dial

tls.go:196–198  ·  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 DialContext.

(network, addr string)

Source from the content-addressed store, hash-verified

194// Dial uses context.Background internally; to specify the context,
195// use DialContext.
196func (d *Dialer) Dial(network, addr string) (net.Conn, error) {
197 return d.DialContext(context.Background(), network, addr)
198}
199
200func (d *Dialer) netDialer() *net.Dialer {
201 if d.NetDialer != nil {

Callers

nothing calls this directly

Calls 1

DialContextMethod · 0.95

Tested by

no test coverage detected