MCPcopy
hub / github.com/tailscale/tailscale / SetNetworkMap

Method SetNetworkMap

wgengine/wgengine.go:124–124  ·  view source on GitHub ↗

SetNetworkMap informs the engine of the latest network map from the server. The network map's DERPMap field should be ignored as as it might be disabled; get it from SetDERPMap instead. The network map should only be read from.

(*netmap.NetworkMap)

Source from the content-addressed store, hash-verified

122 // instead.
123 // The network map should only be read from.
124 SetNetworkMap(*netmap.NetworkMap)
125
126 // UpdateStatus populates the network state using the provided
127 // status builder.

Implementers 2

userspaceEnginewgengine/userspace.go
mockEngineipn/ipnlocal/state_test.go

Calls

no outgoing calls