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:
committed by
Brad Fitzpatrick
parent
ea3715e3ce
commit
daf6de4f14
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user