MCPcopy Create free account
hub / github.com/coder/coder / SetDERPRegionDialer

Method SetDERPRegionDialer

tailnet/conn.go:538–540  ·  view source on GitHub ↗

SetDERPRegionDialer updates the dialer to use for connecting to DERP regions.

(dialer func(ctx context.Context, region *tailcfg.DERPRegion) net.Conn)

Source from the content-addressed store, hash-verified

536
537// SetDERPRegionDialer updates the dialer to use for connecting to DERP regions.
538func (c *Conn) SetDERPRegionDialer(dialer func(ctx context.Context, region *tailcfg.DERPRegion) net.Conn) {
539 c.magicConn.SetDERPRegionDialer(dialer)
540}
541
542// UpdatePeers connects with a set of peers. This can be constantly updated,
543// and peers will continually be reconnected as necessary.

Callers 1

NewServerTailnetFunction · 0.95

Implementers 1

fakeConnvpn/tunnel_internal_test.go

Calls

no outgoing calls

Tested by

no test coverage detected