SetBlockEndpoints sets whether to block P2P endpoints. This setting will only apply to new peers.
(blockEndpoints bool)
| 529 | // SetBlockEndpoints sets whether to block P2P endpoints. This setting |
| 530 | // will only apply to new peers. |
| 531 | func (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. |
| 538 | func (c *Conn) SetDERPRegionDialer(dialer func(ctx context.Context, region *tailcfg.DERPRegion) net.Conn) { |