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

@@ -35,6 +35,7 @@ func (t *fakeTun) File() *os.File {
func (t *fakeTun) Close() error {
close(t.closechan)
close(t.datachan)
close(t.evchan)
return nil
}