Skip to content

add api-server flag for tsClient config#11

Merged
bailey-ts merged 1 commit intomainfrom
bailey-ts/api-url
Jan 16, 2026
Merged

add api-server flag for tsClient config#11
bailey-ts merged 1 commit intomainfrom
bailey-ts/api-url

Conversation

@bailey-ts
Copy link
Contributor

The ts client itself needs the baseURL set, and a separate API URL should be used for API interactions rather than re-using the login URL.

Copy link
Member

@awly awly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, I thought login.tailscale.com and api.tailscale.com are interchangeable!

hallpass.go Outdated
Comment on lines 46 to 48
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
loginServer = flag.String("login-server", "", "optional alternate URL of control server")
apiServer = flag.String("api-server", "", "optional alternate URL of API server")
loginServer = flag.String("login-server", "", "optional alternate URL of the control login server")
apiServer = flag.String("api-server", "", "optional alternate URL of the control API server")

@tailscale tailscale deleted a comment from bailey-ts Jan 16, 2026
The ts client itself needs the baseURL set, and a separate API URL should be used for API interactions rather than re-using the login URL.

Signed-off-by: Bailey Jayes <bailey@tailscale.com>
@bailey-ts bailey-ts merged commit 6e964c9 into main Jan 16, 2026
1 check passed
@bailey-ts bailey-ts deleted the bailey-ts/api-url branch January 16, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments