wgengine: properly clean up freebsd routes and interfaces on close

Signed-off-by: wardn <wardn@users.noreply.github.com>
This commit is contained in:
wardn
2020-02-19 10:57:04 -08:00
committed by David Crawshaw
parent 7a3be96199
commit 9390a3ef55
3 changed files with 6 additions and 9 deletions

View File

@@ -564,6 +564,7 @@ func (e *userspaceEngine) Close() {
e.wgdev.IpcSetOperation(r)
e.linkMon.Close()
e.router.Close()
e.wgdev.Close()
e.magicConn.Close()
close(e.waitCh)
}