From 5705a5e2efdcbbaffa5da00555b1afb3b4f9d2af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Chabot?= Date: Sat, 11 Nov 2017 12:27:24 +0100 Subject: [PATCH] Close tun device with device --- src/device.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/device.go b/src/device.go index 61c87bc..8567a36 100644 --- a/src/device.go +++ b/src/device.go @@ -205,6 +205,7 @@ func (device *Device) Close() { device.RemoveAllPeers() close(device.signal.stop) closeUDPConn(device) + device.tun.device.Close() } func (device *Device) WaitChannel() chan struct{} {