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

Function DialWithDialer

tls.go:590–592  ·  view source on GitHub ↗

DialWithDialer connects to the given network address using dialer.Dial and then initiates a TLS handshake, returning the resulting TLS connection. Any timeout or deadline given in the dialer apply to connection and TLS handshake as a whole. DialWithDialer interprets a nil configuration as equivalen

(dialer *net.Dialer, network, addr string, config *Config)

Source from the content-addressed store, hash-verified

588// DialWithDialer uses context.Background internally; to specify the context,
589// use [Dialer.DialContext] with NetDialer set to the desired dialer.
590func DialWithDialer(dialer *net.Dialer, network, addr string, config *Config) (*Conn, error) {
591 return dial(context.Background(), dialer, network, addr, config)
592}
593
594func dial(ctx context.Context, netDialer *net.Dialer, network, addr string, config *Config) (*Conn, error) {
595 if netDialer.Timeout != 0 {

Callers 1

DialFunction · 0.85

Calls 1

dialFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…