From: Aurélien Chabot Date: Sat, 11 Nov 2017 11:27:24 +0000 (+0100) Subject: Close tun device with device X-Git-Tag: 0.0.20180514~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5705a5e2efdcbbaffa5da00555b1afb3b4f9d2af;p=thirdparty%2Fwireguard-go.git Close tun device with device --- 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{} {