Browse Source

Fix windows unsafe_routes regression (#648)

Nate Brown 3 năm trước cách đây
mục cha
commit
bbe0a032bb
1 tập tin đã thay đổi với 0 bổ sung4 xóa
  1. 0 4
      overlay/tun_windows.go

+ 0 - 4
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) {
 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
 	useWintun := true
 	if err := checkWinTunExists(); err != nil {
 	if err := checkWinTunExists(); err != nil {
 		l.WithError(err).Warn("Check Wintun driver failed, fallback to wintap driver")
 		l.WithError(err).Warn("Check Wintun driver failed, fallback to wintap driver")