MCPcopy Index your code
hub / github.com/coder/coder / SetBlockEndpoints

Method SetBlockEndpoints

tailnet/conn.go:531–535  ·  view source on GitHub ↗

SetBlockEndpoints sets whether to block P2P endpoints. This setting will only apply to new peers.

(blockEndpoints bool)

Source from the content-addressed store, hash-verified

529// SetBlockEndpoints sets whether to block P2P endpoints. This setting
530// will only apply to new peers.
531func (c *Conn) SetBlockEndpoints(blockEndpoints bool) {
532 c.configMaps.setBlockEndpoints(blockEndpoints)
533 c.nodeUpdater.setBlockEndpoints(blockEndpoints)
534 c.magicConn.SetBlockEndpoints(blockEndpoints)
535}
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) {

Callers 3

TestAgent_UpdatedDERPFunction · 0.95
NewConnFunction · 0.80
createOrUpdateNetworkMethod · 0.80

Implementers 1

fakeConnvpn/tunnel_internal_test.go

Calls 1

setBlockEndpointsMethod · 0.45

Tested by 1

TestAgent_UpdatedDERPFunction · 0.76