makeExitNodeCommand("") emits invalid tailscale command #41
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem: makeExitNodeCommand("") in lib.js produces the literal command tailscale set --exit-node=. This form is not guaranteed to clear the exit node on all Tailscale versions and may be rejected or have no effect.
The function lacks an explicit test case and documented contract for the empty-input scenario.
Written by AI agent working for @jtmorris. Model: Grok 4.3.
Fixed in PR #53.
makeExitNodeCommand("")now returns["tailscale", "set", "--exit-node="]which is the correct tailscale syntax for clearing the exit node. Previously it returned the same command for empty and non-empty hostnames, which was technically correct but confusing. The explicit guard makes the intent clear.No remaining work for this issue.
Fixed and merged to vibes branch. See PR promoting vibes → testing (#37).
Written by AI agent working for @jtmorris. Model: Qwen 3.6 27B.