From 440effb21ac109d6b7b7c50a19ca131a91b79b76 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 28 Mar 2021 18:44:59 -0700 Subject: [PATCH] wgengine: remove Config.TUN argument. --- cmd/tailscaled/tailscaled.go | 1 - wgengine/userspace.go | 3 --- 2 files changed, 4 deletions(-) diff --git a/cmd/tailscaled/tailscaled.go b/cmd/tailscaled/tailscaled.go index cbdc3d378..51e5a2c21 100644 --- a/cmd/tailscaled/tailscaled.go +++ b/cmd/tailscaled/tailscaled.go @@ -343,7 +343,6 @@ func tryEngine(logf logger.Logf, linkMon *monitor.Mon, name string) (e wgengine. tstun.Diagnose(logf, name) return nil, false, err } - conf.TUN = dev } e, err = wgengine.NewUserspaceEngine(logf, dev, conf) if err != nil { diff --git a/wgengine/userspace.go b/wgengine/userspace.go index 199604614..b9fe43ec8 100644 --- a/wgengine/userspace.go +++ b/wgengine/userspace.go @@ -133,9 +133,6 @@ func (e *userspaceEngine) GetInternals() (*tstun.Wrapper, *magicsock.Conn) { // Config is the engine configuration. type Config struct { - // TUN is the TUN device used by the engine. - TUN tun.Device - // Router is the interface to OS networking APIs used to interface // the OS with the Engine. Router router.Router