mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-06-05 04:43:44 +02:00
Close tun fd when bringing down tunnel
This commit is contained in:
parent
519c5d200a
commit
09de7d1342
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ func (tun *NativeTun) Events() chan TUNEvent {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (tun *NativeTun) Close() error {
|
func (tun *NativeTun) Close() error {
|
||||||
return nil
|
return tun.fd.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
func CreateTUNFromFile(name string, fd *os.File) (TUNDevice, error) {
|
func CreateTUNFromFile(name string, fd *os.File) (TUNDevice, error) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue