diff options
author | Aurélien Chabot <aurelien@chabot.fr> | 2017-11-11 12:27:24 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-11-11 12:27:24 +0100 |
commit | 5705a5e2efdcbbaffa5da00555b1afb3b4f9d2af (patch) | |
tree | a1d1d83b34bb59c093affb4a66c6d81778c421fc | |
parent | 32d8932d1b29effa42fe56822988d3888c496873 (diff) |
Close tun device with device
-rw-r--r-- | src/device.go | 1 |
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{} { |