MCPcopy
hub / github.com/tailscale/tailscale / Reconfig

Method Reconfig

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

Reconfig reconfigures WireGuard and makes sure it's running. This also handles setting up any kernel routes. This is called whenever tailcontrol (the control plane) sends an updated network map. The returned error is ErrNoChanges if no changes were made.

(*wgcfg.Config, *router.Config, *dns.Config)

Source from the content-addressed store, hash-verified

68 //
69 // The returned error is ErrNoChanges if no changes were made.
70 Reconfig(*wgcfg.Config, *router.Config, *dns.Config) error
71
72 // ResetAndStop resets the engine to a clean state (like calling Reconfig
73 // with all pointers to zero values) and waits for it to be fully stopped,

Implementers 2

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

Calls

no outgoing calls