mirror of
https://github.com/fosrl/olm.git
synced 2026-02-08 05:56:41 +00:00
@@ -26,7 +26,7 @@ func CreateTUNFromFD(tunFd uint32, mtuInt int) (tun.Device, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
file := os.NewFile(uintptr(dupTunFd), "/dev/tun")
|
file := os.NewFile(uintptr(dupTunFd), "/dev/tun")
|
||||||
device, err := tun.CreateTUNFromFile(file, mtuInt)
|
device, err := tun.CreateTUNFromFile(file, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
file.Close()
|
file.Close()
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Reference in New Issue
Block a user