mirror of
https://github.com/KusakabeShi/EtherGuard-VPN.git
synced 2025-08-10 08:04:49 +02:00
tun: windows: Fix paused adapter test
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
@ -187,7 +187,7 @@ func (tun *NativeTun) getTUN() (read *os.File, write *os.File, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (tun *NativeTun) shouldReopenHandle(err error) bool {
|
func (tun *NativeTun) shouldReopenHandle(err error) bool {
|
||||||
if pe, ok := err.(*os.PathError); ok && pe.Err == os.ErrClosed {
|
if pe, ok := err.(*os.PathError); ok && pe.Err == windows.ERROR_OPERATION_ABORTED {
|
||||||
return !tun.close
|
return !tun.close
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
Reference in New Issue
Block a user