MCPcopy
hub / github.com/AdguardTeam/dnsproxy / DialHandler

FuncType DialHandler

internal/bootstrap/bootstrap.go:44–44  ·  view source on GitHub ↗

DialHandler is a dial function for creating unencrypted network connections to the upstream server. It establishes the connection to the server specified at initialization and ignores the addr. network must be one of [NetworkTCP] or [NetworkUDP].

func(ctx context.Context, network Network, addr string) (conn net.Conn, err error)

Source from the content-addressed store, hash-verified

42// specified at initialization and ignores the addr. network must be one of
43// [NetworkTCP] or [NetworkUDP].
44type DialHandler func(ctx context.Context, network Network, addr string) (conn net.Conn, err error)
45
46// ResolveDialContext returns a DialHandler that uses addresses resolved from u
47// using resolver. l and u must not be nil.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…