b7025b5627
In case reading from TUN device detected TUN device was closed, it closed the file handle and set tunFile to nil. The tunFile is automatically reopened on retry, but... If another packet comes in the WireGuard calls Write() method. With tunFile set to nil, this will cause access violation. Therefore, locking was introduced. Signed-off-by: Simon Rozman <simon@rozman.si> |
||
---|---|---|
.. | ||
wintun | ||
tun.go | ||
tun_darwin.go | ||
tun_freebsd.go | ||
tun_linux.go | ||
tun_openbsd.go | ||
tun_windows.go |