[PR #1734] [MERGED] Allow when user has only a subnet route #2284

Closed
opened 2025-12-29 03:20:32 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/1734
Author: @TotoTheDragon
Created: 2/11/2024
Status: Merged
Merged: 2/12/2024
Merged by: @kradalby

Base: mainHead: fix/subnet-route-without-peer


📝 Commits (9)

📊 Changes

2 files changed (+79 additions, -2 deletions)

View changed files

📝 hscontrol/policy/acls_test.go (+69 -1)
📝 hscontrol/types/node.go (+10 -1)

📄 Description

  • read the CONTRIBUTING guidelines
  • raised a GitHub issue or discussed it on the projects chat beforehand
  • added unit tests
  • added integration tests
  • updated documentation if needed
  • updated CHANGELOG.md

Fixes #1604


🔄 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/1734 **Author:** [@TotoTheDragon](https://github.com/TotoTheDragon) **Created:** 2/11/2024 **Status:** ✅ Merged **Merged:** 2/12/2024 **Merged by:** [@kradalby](https://github.com/kradalby) **Base:** `main` ← **Head:** `fix/subnet-route-without-peer` --- ### 📝 Commits (9) - [`0965350`](https://github.com/juanfont/headscale/commit/096535098c017bd45b848145962ef278470501ef) Add test because of issue 1604 - [`da8a8b9`](https://github.com/juanfont/headscale/commit/da8a8b980d0fb7d682c5c6fdf45179006126838a) Add peer for routes - [`e9dcec1`](https://github.com/juanfont/headscale/commit/e9dcec1b025289fb725a85e915602a00dc9aa499) Revert previous change to try different way to add peer - [`c5e552e`](https://github.com/juanfont/headscale/commit/c5e552e308f4f170bdd9cac63966d30808d4d6cd) Add traces - [`13a90ab`](https://github.com/juanfont/headscale/commit/13a90ab6dcadf183b3ac48e034f8ffd74081aa71) Remove traces - [`5260b4a`](https://github.com/juanfont/headscale/commit/5260b4a481a5554586e944b56665639bd4b91a9b) Make sure tests have IPPrefix comparator - [`3183091`](https://github.com/juanfont/headscale/commit/31830919d71a90cdc2e14e65b130032144cf40ea) Get allowedIps before loop - [`f658d18`](https://github.com/juanfont/headscale/commit/f658d1879fd68215f34867c294786e88b71b3279) Remove comment - [`d05d528`](https://github.com/juanfont/headscale/commit/d05d5281a555bfc020d4504e26ce3f048adcd072) Add composite literals :) ### 📊 Changes **2 files changed** (+79 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `hscontrol/policy/acls_test.go` (+69 -1) 📝 `hscontrol/types/node.go` (+10 -1) </details> ### 📄 Description <!-- Headscale is "Open Source, acknowledged contribution", this means that any contribution will have to be discussed with the Maintainers before being submitted. This model has been chosen to reduce the risk of burnout by limiting the maintenance overhead of reviewing and validating third-party code. Headscale is open to code contributions for bug fixes without discussion. If you find mistakes in the documentation, please submit a fix to the documentation. --> <!-- Please tick if the following things apply. You… --> - [x] read the [CONTRIBUTING guidelines](README.md#contributing) - [x] raised a GitHub issue or discussed it on the projects chat beforehand - [x] added unit tests - [ ] added integration tests - [ ] updated documentation if needed - [ ] updated CHANGELOG.md <!-- If applicable, please reference the issue using `Fixes #XXX` and add tests to cover your new code. --> Fixes #1604 --- <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 03:20:32 +01:00
adam closed this issue 2025-12-29 03:20:33 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2284