2021-04-06 12:45:56 +08:00
|
|
|
// 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.
|
|
|
|
|
2021-08-06 06:42:39 +08:00
|
|
|
//go:build !windows
|
2021-04-06 12:45:56 +08:00
|
|
|
|
|
|
|
package tstun
|
|
|
|
|
2021-05-26 03:42:22 +08:00
|
|
|
import "golang.zx2c4.com/wireguard/tun"
|
2021-04-06 12:45:56 +08:00
|
|
|
|
|
|
|
func interfaceName(dev tun.Device) (string, error) {
|
|
|
|
return dev.Name()
|
|
|
|
}
|