From f91c2dfaca0f54e34b58dbd2ae5fd1a031748b8c Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Mon, 3 May 2021 13:03:22 -0700 Subject: [PATCH] wgengine/router: remove unused field Signed-off-by: Josh Bleecher Snyder --- wgengine/router/router_windows.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/wgengine/router/router_windows.go b/wgengine/router/router_windows.go index 42c81590b..216b95d0c 100644 --- a/wgengine/router/router_windows.go +++ b/wgengine/router/router_windows.go @@ -30,15 +30,6 @@ type winRouter struct { nativeTun *tun.NativeTun routeChangeCallback *winipcfg.RouteChangeCallback firewall *firewallTweaker - - // firewallSubproc is a subprocess that runs a tweaked version of - // wireguard-windows's "default route killswitch" code. We run it - // as a subprocess because it does unsafe callouts to the WFP API, - // and we want to defend against memory corruption in our main - // process. Owned and mutated only by Set, and doesn't need a lock - // because Set is only called with wgengine's lock held, - // preventing concurrent reconfigs. - firewallSubproc *exec.Cmd } func newUserspaceRouter(logf logger.Logf, tundev tun.Device) (Router, error) {