set mtu to 0 on darwin

Former-commit-id: fbe686961e
This commit is contained in:
miloschwartz
2026-01-01 17:38:01 -05:00
parent 83edde3449
commit 1ed27fec1a

View File

@@ -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