[PR #278] fix(client): prevent wireguard lifecycle reinitialization #1624

Open
opened 2026-04-24 20:09:34 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fosrl/newt/pull/278
Author: @LaurenceJJones
Created: 3/16/2026
Status: 🔄 Open

Base: devHead: fix/clients-goroutine-lifecycle


📝 Commits (1)

  • 8a5bfb5 fix(client): prevent wireguard lifecycle reinitialization

📊 Changes

1 file changed (+83 additions, -12 deletions)

View changed files

📝 clients/clients.go (+83 -12)

📄 Description

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

  • make WireGuard client interface setup idempotent on repeated config updates
  • serialize periodic bandwidth-check start/stop to avoid shutdown races
  • cleanly close the native UAPI listener during client shutdown

How to test?

Internal code fixes.


🔄 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/fosrl/newt/pull/278 **Author:** [@LaurenceJJones](https://github.com/LaurenceJJones) **Created:** 3/16/2026 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `fix/clients-goroutine-lifecycle` --- ### 📝 Commits (1) - [`8a5bfb5`](https://github.com/fosrl/newt/commit/8a5bfb59dfd66bf0cd61efce7a4e7323e7e2f725) fix(client): prevent wireguard lifecycle reinitialization ### 📊 Changes **1 file changed** (+83 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `clients/clients.go` (+83 -12) </details> ### 📄 Description ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. ## Description - make WireGuard client interface setup idempotent on repeated config updates - serialize periodic bandwidth-check start/stop to avoid shutdown races - cleanly close the native UAPI listener during client shutdown ## How to test? Internal code fixes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-24 20:09:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/newt#1624