mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-18 02:48:40 +00:00
cmd/tailscaled: fix Windows "Allow local LAN access" regression
3f686688a6cff regressed the Windows beFirewallKillswitch code, preventing the /firewall subprocess from running. Fixes tailscale/corp#6063 Change-Id: Ibd105759e5fecfeffc54f587f8ddcd0f1cbc4dca Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
96afd1db46
commit
505ca2750d
@ -161,7 +161,7 @@ func main() {
|
|||||||
flag.Parse()
|
flag.Parse()
|
||||||
if flag.NArg() > 0 {
|
if flag.NArg() > 0 {
|
||||||
// Windows subprocess is spawned with /subprocess, so we need to avoid this check there.
|
// Windows subprocess is spawned with /subprocess, so we need to avoid this check there.
|
||||||
if runtime.GOOS != "windows" || flag.Arg(0) != "/subproc" {
|
if runtime.GOOS != "windows" || (flag.Arg(0) != "/subproc" && flag.Arg(0) != "/firewall") {
|
||||||
log.Fatalf("tailscaled does not take non-flag arguments: %q", flag.Args())
|
log.Fatalf("tailscaled does not take non-flag arguments: %q", flag.Args())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user