wgengine/router: remove unused wireguard *Device argument.

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson
2021-03-26 19:22:35 -07:00
committed by Dave Anderson
parent 1642dfdb07
commit 0a84aaca0a
11 changed files with 16 additions and 27 deletions

View File

@ -7,7 +7,6 @@
package router
import (
"github.com/tailscale/wireguard-go/device"
"github.com/tailscale/wireguard-go/tun"
"inet.af/netaddr"
"tailscale.com/net/dns"
@ -33,9 +32,9 @@ type Router interface {
// New returns a new Router for the current platform, using the
// provided tun device.
func New(logf logger.Logf, wgdev *device.Device, tundev tun.Device) (Router, error) {
func New(logf logger.Logf, tundev tun.Device) (Router, error) {
logf = logger.WithPrefix(logf, "router: ")
return newUserspaceRouter(logf, wgdev, tundev)
return newUserspaceRouter(logf, tundev)
}
// Cleanup restores the system network configuration to its original state