diff --git a/device/tun/tun_windows.go b/device/tun/tun_windows.go index c6b83d8..425130a 100755 --- a/device/tun/tun_windows.go +++ b/device/tun/tun_windows.go @@ -43,9 +43,8 @@ func Open(opts ...Option) (device.Device, error) { } t.iface = iface - t.mtu = defaultMTU - if t.mtu > 0 { - /* ignore */ + if t.mtu == 0 { + t.mtu = defaultMTU } ep, err := rwbased.New(iface, t.mtu)