[PR #981] [MERGED] Fix remote CLI when there is no config file present #1790

Closed
opened 2025-12-29 02:31:43 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/981
Author: @juanfont
Created: 11/18/2022
Status: Merged
Merged: 11/18/2022
Merged by: @juanfont

Base: mainHead: fix-remote-cli


📝 Commits (2)

  • 87c3dc0 Fix remote CLI when there is no config file present
  • 25eb8ad Fix issue when CLI is configured in config file

📊 Changes

1 file changed (+21 additions, -2 deletions)

View changed files

📝 config.go (+21 -2)

📄 Description

If users are following https://github.com/juanfont/headscale/blob/main/docs/remote-cli.md, headscale CLI fails to connect to the remove server because no config file is set up (i.e., the remote CLI is fully configured via env vars).

This PR allows headscale running in CLI mode to be run only with env vars.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/juanfont/headscale/pull/981 **Author:** [@juanfont](https://github.com/juanfont) **Created:** 11/18/2022 **Status:** ✅ Merged **Merged:** 11/18/2022 **Merged by:** [@juanfont](https://github.com/juanfont) **Base:** `main` ← **Head:** `fix-remote-cli` --- ### 📝 Commits (2) - [`87c3dc0`](https://github.com/juanfont/headscale/commit/87c3dc005f7dcdb3d1e162c524a20afb836e0b1e) Fix remote CLI when there is no config file present - [`25eb8ad`](https://github.com/juanfont/headscale/commit/25eb8ad3f0d5c9fd6ad5a0474cefae988bbbcaac) Fix issue when CLI is configured in config file ### 📊 Changes **1 file changed** (+21 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `config.go` (+21 -2) </details> ### 📄 Description If users are following https://github.com/juanfont/headscale/blob/main/docs/remote-cli.md, headscale CLI fails to connect to the remove server because no config file is set up (i.e., the remote CLI is fully configured via env vars). This PR allows headscale running in CLI mode to be run only with env vars. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 02:31:43 +01:00
adam closed this issue 2025-12-29 02:31:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1790