MCPcopy Index your code
hub / github.com/tailscale/tailscale / GetAddresses

Method GetAddresses

types/netmap/netmap.go:93–99  ·  view source on GitHub ↗

GetAddresses returns the self node's addresses, or the zero value if SelfNode is invalid.

()

Source from the content-addressed store, hash-verified

91// GetAddresses returns the self node's addresses, or the zero value
92// if SelfNode is invalid.
93func (nm *NetworkMap) GetAddresses() views.Slice[netip.Prefix] {
94 var zero views.Slice[netip.Prefix]
95 if !nm.SelfNode.Valid() {
96 return zero
97 }
98 return nm.SelfNode.Addresses()
99}
100
101// GetVIPServiceIPMap returns a map of service names to the slice of
102// VIP addresses that correspond to the service. The service names are

Callers 15

printConciseHeaderMethod · 0.95
equalConciseHeaderMethod · 0.95
TailscaleIPsMethod · 0.80
PeerForIPMethod · 0.80
UpdateNetstackIPsMethod · 0.80
WGCfgFunction · 0.80
runMethod · 0.80
dnsMapFromNetworkMapFunction · 0.80
peerAPIBaseFunction · 0.80
linkChangeMethod · 0.80

Calls 2

AddressesMethod · 0.80
ValidMethod · 0.65

Tested by

no test coverage detected