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)
| 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, |
no outgoing calls