set mtu to 0 on darwin

This commit is contained in:
miloschwartz
2026-01-01 17:38:01 -05:00
parent fbeb5be88d
commit fbe686961e

View File

@@ -26,7 +26,7 @@ func CreateTUNFromFD(tunFd uint32, mtuInt int) (tun.Device, error) {
}
file := os.NewFile(uintptr(dupTunFd), "/dev/tun")
device, err := tun.CreateTUNFromFile(file, mtuInt)
device, err := tun.CreateTUNFromFile(file, 0)
if err != nil {
file.Close()
return nil, err