mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-06-05 21:03:43 +02:00
Close tun device with device
This commit is contained in:
parent
32d8932d1b
commit
5705a5e2ef
1 changed files with 1 additions and 0 deletions
|
@ -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{} {
|
||||
|
|
Loading…
Add table
Reference in a new issue