You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/wgengine/router
Andrew Dunham 6540d1f018 wgengine/router: look up absolute path to netsh.exe on Windows
This is in response to logs from a customer that show that we're unable
to run netsh due to the following error:

    router: firewall: adding Tailscale-Process rule to allow UDP for "C:\\Program Files\\Tailscale\\tailscaled.exe" ...
    router: firewall: error adding Tailscale-Process rule: exec: "netsh": cannot run executable found relative to current directory:

There's approximately no reason to ever dynamically look up the path of
a system utility like netsh.exe, so instead let's first look for it
in the System32 directory and only if that fails fall back to the
previous behaviour.

Updates #10804

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: I68cfeb4cab091c79ccff3187d35f50359a690573
10 months ago
..
callback.go
ifconfig_windows.go all: cleanup unused code, part 2 (#10670) 11 months ago
ifconfig_windows_test.go
router.go
router_darwin.go
router_default.go
router_fake.go
router_freebsd.go
router_linux.go
router_linux_test.go
router_openbsd.go
router_test.go all: cleanup unused code, part 2 (#10670) 11 months ago
router_userspace_bsd.go
router_windows.go wgengine/router: look up absolute path to netsh.exe on Windows 10 months ago
router_windows_test.go wgengine/router: look up absolute path to netsh.exe on Windows 10 months ago
runner.go