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{} {