diff options
| author | Andrew Dunham <andrew@du.nham.ca> | 2024-01-10 12:37:14 -0500 |
|---|---|---|
| committer | Andrew Dunham <andrew@du.nham.ca> | 2024-01-10 20:20:19 -0500 |
| commit | 6540d1f01800d03fa46d467fae777163b8ba3d0d (patch) | |
| tree | bb9523b17f34c212535b56224b8e60d6f0394f31 /util/execqueue/execqueue.go | |
| parent | ca48db0d606d21fdc9637f001a82852de9c3e288 (diff) | |
| download | tailscale-6540d1f01800d03fa46d467fae777163b8ba3d0d.tar.xz tailscale-6540d1f01800d03fa46d467fae777163b8ba3d0d.zip | |
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
Diffstat (limited to 'util/execqueue/execqueue.go')
0 files changed, 0 insertions, 0 deletions
