From bbe0a032bb707b9dcc3e004ce2936739522603b6 Mon Sep 17 00:00:00 2001 From: Nate Brown Date: Wed, 9 Mar 2022 13:23:29 -0600 Subject: [PATCH] Fix windows unsafe_routes regression (#648) --- overlay/tun_windows.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/overlay/tun_windows.go b/overlay/tun_windows.go index 9d6f85f..e35e98b 100644 --- a/overlay/tun_windows.go +++ b/overlay/tun_windows.go @@ -19,10 +19,6 @@ func newTunFromFd(_ *logrus.Logger, _ int, _ *net.IPNet, _ int, _ []Route, _ int } func newTun(l *logrus.Logger, deviceName string, cidr *net.IPNet, defaultMTU int, routes []Route, _ int, _ bool) (Device, error) { - if len(routes) > 0 { - return nil, fmt.Errorf("route MTU not supported in Windows") - } - useWintun := true if err := checkWinTunExists(); err != nil { l.WithError(err).Warn("Check Wintun driver failed, fallback to wintap driver")