[PR #490] [CLOSED] Ignore expired machine records - closes #489 #1436

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

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/490
Author: @mevansam
Created: 3/8/2022
Status: Closed

Base: mainHead: appbricks/main-bug-fix


📝 Commits (2)

  • 696a6f5 Ignore expired machine records - closes #489
  • 2ee6239 Merge branch 'main' into appbricks/main-bug-fix

📊 Changes

3 files changed (+22 additions, -2 deletions)

View changed files

📝 machine.go (+14 -0)
📝 poll.go (+1 -1)
📝 utils.go (+7 -1)

📄 Description

This pull request fixes #489 with the following changes:

  1. added function to return a valid unexpired machine given a machine key ignoring expired records for the same machine key
  2. changed machine by key lookup to use the above function
  3. added logic to also skip expired machines when determining unused IPs.

🔄 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/490 **Author:** [@mevansam](https://github.com/mevansam) **Created:** 3/8/2022 **Status:** ❌ Closed **Base:** `main` ← **Head:** `appbricks/main-bug-fix` --- ### 📝 Commits (2) - [`696a6f5`](https://github.com/juanfont/headscale/commit/696a6f5f5fb0e9fbe2259dd3e0470c90e5b14e51) Ignore expired machine records - closes #489 - [`2ee6239`](https://github.com/juanfont/headscale/commit/2ee623904aff7c5aedec19ea9f3a1a97fea41e46) Merge branch 'main' into appbricks/main-bug-fix ### 📊 Changes **3 files changed** (+22 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `machine.go` (+14 -0) 📝 `poll.go` (+1 -1) 📝 `utils.go` (+7 -1) </details> ### 📄 Description This pull request fixes #489 with the following changes: 1. added function to return a valid unexpired machine given a machine key ignoring expired records for the same machine key 2. changed machine by key lookup to use the above function 3. added logic to also skip expired machines when determining unused IPs. --- <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:30:05 +01:00
adam closed this issue 2025-12-29 02:30:05 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1436