Browse Source

Fix: set MTU on windows

pull/76/head
xjasonlyu 4 years ago
parent
commit
5f95bc9091
  1. 5
      device/tun/tun_windows.go

5
device/tun/tun_windows.go

@ -43,9 +43,8 @@ func Open(opts ...Option) (device.Device, error) {
} }
t.iface = iface t.iface = iface
t.mtu = defaultMTU if t.mtu == 0 {
if t.mtu > 0 { t.mtu = defaultMTU
/* ignore */
} }
ep, err := rwbased.New(iface, t.mtu) ep, err := rwbased.New(iface, t.mtu)

Loading…
Cancel
Save