[PR #1470] [CLOSED] Fixing IPv6 Parsing in ACLs #2138

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

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/1470
Author: @vsychov
Created: 5/20/2023
Status: Closed

Base: mainHead: fix-acl


📝 Commits (1)

📊 Changes

3 files changed (+63 additions, -1 deletions)

View changed files

📝 hscontrol/policy/acls.go (+7 -1)
📝 hscontrol/policy/acls_test.go (+38 -0)
📝 integration/acl_test.go (+18 -0)

📄 Description

This pull request addresses a bug found in the ACLs' handling of IPv6 addresses. Previously, the ACLs would fail to correctly parse IPv6 addresses, especially those with network prefixes attached (CIDR notation).

The result of these changes is an improved ability to parse IPv6 addresses, including those with network prefixes attached.

  • 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

🔄 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/1470 **Author:** [@vsychov](https://github.com/vsychov) **Created:** 5/20/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-acl` --- ### 📝 Commits (1) - [`e3ea242`](https://github.com/juanfont/headscale/commit/e3ea242fbd9d494c4831fdfbf1779f72342e202a) Fix IPv6 in ACLs ### 📊 Changes **3 files changed** (+63 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `hscontrol/policy/acls.go` (+7 -1) 📝 `hscontrol/policy/acls_test.go` (+38 -0) 📝 `integration/acl_test.go` (+18 -0) </details> ### 📄 Description This pull request addresses a bug found in the ACLs' handling of IPv6 addresses. Previously, the ACLs would fail to correctly parse IPv6 addresses, especially those with network prefixes attached (CIDR notation). The result of these changes is an improved ability to parse IPv6 addresses, including those with network prefixes attached. - [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 - [x] added integration tests - [x] updated documentation if needed - [x] updated CHANGELOG.md --- <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:19:55 +01:00
adam closed this issue 2025-12-29 03:19:55 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2138