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

Method NodeAddresses

tailnet/conn.go:558–560  ·  view source on GitHub ↗

NodeAddresses returns the addresses of a node from the NetworkMap.

(publicKey key.NodePublic)

Source from the content-addressed store, hash-verified

556
557// NodeAddresses returns the addresses of a node from the NetworkMap.
558func (c *Conn) NodeAddresses(publicKey key.NodePublic) ([]netip.Prefix, bool) {
559 return c.configMaps.nodeAddresses(publicKey)
560}
561
562// Status returns the current ipnstate of a connection.
563func (c *Conn) Status() *ipnstate.Status {

Callers 1

CollectMethod · 0.80

Implementers 1

fakeConnvpn/tunnel_internal_test.go

Calls 1

nodeAddressesMethod · 0.80

Tested by

no test coverage detected