mirror of
https://github.com/tailscale/tailscale.git
synced 2025-05-11 01:56:58 +00:00
cmd/tailscale/cli: fix double tag: prefix in tailscale up
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
946c1edb42
commit
696e160cfc
@ -186,11 +186,12 @@ func runUp(ctx context.Context, args []string) error {
|
|||||||
if strings.HasPrefix(tag, "tag:") {
|
if strings.HasPrefix(tag, "tag:") {
|
||||||
// Accept fully-qualified tags (starting with
|
// Accept fully-qualified tags (starting with
|
||||||
// "tag:"), as we do in the ACL file.
|
// "tag:"), as we do in the ACL file.
|
||||||
err := tailcfg.CheckTag(tag)
|
if err := tailcfg.CheckTag(tag); err != nil {
|
||||||
if err != nil {
|
|
||||||
fatalf("tag: %q: %v", tag, err)
|
fatalf("tag: %q: %v", tag, err)
|
||||||
}
|
}
|
||||||
} else if err := tailcfg.CheckTagSuffix(tag); err != nil {
|
continue
|
||||||
|
}
|
||||||
|
if err := tailcfg.CheckTagSuffix(tag); err != nil {
|
||||||
fatalf("tag: %q: %v", tag, err)
|
fatalf("tag: %q: %v", tag, err)
|
||||||
}
|
}
|
||||||
tags[i] = "tag:" + tag
|
tags[i] = "tag:" + tag
|
||||||
|
Loading…
x
Reference in New Issue
Block a user