mirror of
https://github.com/KusakabeShi/EtherGuard-VPN.git
synced 2025-08-10 08:04:49 +02:00
Close tun fd when bringing down tunnel
This commit is contained in:
@ -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) {
|
||||||
|
Reference in New Issue
Block a user