Bug during registration new macos node #358

Closed
opened 2025-12-29 01:27:38 +01:00 by adam · 0 comments
Owner

Originally created by @CNLHC on GitHub (Nov 2, 2022).

Bug description

macOS standalone client can not login to the headscale server.

To Reproduce

  1. setup v0.16.4 headscale server
  2. install a standalone version of MacOS Client from tailscale sites (using version 1.32)
  3. using defaults write io.tailscale.ipn.macsys ControlURL http://<XXX>:8080 to change the control server
  4. Open APP and click log in
  5. The server return 401 and Unauthorized

Context info

The relevant context

  • Version of headscale used:0.16.4

  • Version of tailscale client:macOS Standalone GUI Client, Version 1.32

The Reason I Guess

  1. A URL like http://XXX/register/<key_hex> will send to the client from here.
    e112514a3b/protocol_common.go (L496)

  2. But a URL like http://XXX/register/node:<key_hex> is required during the client login.
    1eea9c943c/api.go (L98)

  3. And finally, The unexpected content was returned from here
    1eea9c943c/api.go (L111)

The Fix I Submitted

https://github.com/juanfont/headscale/pull/911

Originally created by @CNLHC on GitHub (Nov 2, 2022). <!-- Headscale is a multinational community across the globe. Our common language is English. Please consider raising the bug report in this language. --> **Bug description** macOS standalone client can not login to the headscale server. <!-- A clear and concise description of what the bug is. Describe the expected bahavior and how it is currently different. If you are unsure if it is a bug, consider discussing it on our Discord server first. --> **To Reproduce** <!-- Steps to reproduce the behavior. --> 1. setup v0.16.4 headscale server 2. install a standalone version of MacOS Client from [tailscale sites](https://pkgs.tailscale.com/stable/#macos) (using version 1.32) 3. using `defaults write io.tailscale.ipn.macsys ControlURL http://<XXX>:8080` to change the control server 4. Open APP and click log in 5. The server return 401 and `Unauthorized` **Context info** The relevant context - Version of headscale used:0.16.4 - Version of tailscale client:macOS Standalone GUI Client, Version 1.32 **The Reason I Guess** 1. A URL like `http://XXX/register/<key_hex>` will send to the client from here. https://github.com/juanfont/headscale/blob/e112514a3bce6c1592a9e1514ddf750459244803/protocol_common.go#L496 2. But a URL like `http://XXX/register/node:<key_hex>` is required during the client login. https://github.com/juanfont/headscale/blob/1eea9c943c8e1174795dd504ba490091495d7339/api.go#L98 3. And finally, The unexpected content was returned from here https://github.com/juanfont/headscale/blob/1eea9c943c8e1174795dd504ba490091495d7339/api.go#L111 **The Fix I Submitted** https://github.com/juanfont/headscale/pull/911
adam added the bug label 2025-12-29 01:27:38 +01:00
adam closed this issue 2025-12-29 01:27:39 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#358