wgengine: make NewUserspaceEngine wait for TUN interface to be up on Windows

Updates #474

Signed-off-by: Aleksandar Pesic <peske.nis@gmail.com>
This commit is contained in:
Aleksandar Pesic
2021-02-23 04:29:54 +01:00
committed by Brad Fitzpatrick
parent ea3715e3ce
commit daf6de4f14
3 changed files with 134 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
// Copyright (c) 2021 Tailscale Inc & AUTHORS All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build !windows
package wgengine
import (
"time"
"github.com/tailscale/wireguard-go/tun"
"tailscale.com/types/logger"
)
// Dummy implementation that does nothing.
func waitInterfaceUp(iface tun.Device, timeout time.Duration, logf logger.Logf) error {
return nil
}