aboutsummaryrefslogtreecommitdiffstats
path: root/src/device.go
diff options
context:
space:
mode:
authorAurélien Chabot <aurelien@chabot.fr>2017-11-11 12:27:24 +0100
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-11-11 12:27:24 +0100
commit5705a5e2efdcbbaffa5da00555b1afb3b4f9d2af (patch)
treea1d1d83b34bb59c093affb4a66c6d81778c421fc /src/device.go
parentSleep to close fd (diff)
downloadwireguard-go-5705a5e2efdcbbaffa5da00555b1afb3b4f9d2af.tar.xz
wireguard-go-5705a5e2efdcbbaffa5da00555b1afb3b4f9d2af.zip
Close tun device with device
Diffstat (limited to '')
-rw-r--r--src/device.go1
1 files changed, 1 insertions, 0 deletions
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{} {