[PR #2757] [MERGED] [client] Cleanup dns and route states on startup #15569

Closed
opened 2026-08-05 03:07:58 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2757
Author: @lixmal
Created: 10/18/2024
Status: Merged
Merged: 10/24/2024
Merged by: @lixmal

Base: mainHead: cleanup-saved-state


📝 Commits (10+)

📊 Changes

42 files changed (+785 additions, -376 deletions)

View changed files

client/firewall/nftables/state.go (+1 -0)
📝 client/internal/connect.go (+5 -7)
📝 client/internal/dns/consts_freebsd.go (+1 -2)
📝 client/internal/dns/consts_linux.go (+1 -2)
📝 client/internal/dns/file_repair_unix.go (+5 -3)
📝 client/internal/dns/file_repair_unix_test.go (+5 -4)
📝 client/internal/dns/file_unix.go (+9 -15)
📝 client/internal/dns/host.go (+6 -13)
📝 client/internal/dns/host_android.go (+5 -7)
📝 client/internal/dns/host_darwin.go (+7 -11)
📝 client/internal/dns/host_ios.go (+4 -7)
📝 client/internal/dns/host_unix.go (+7 -21)
📝 client/internal/dns/host_windows.go (+8 -12)
📝 client/internal/dns/network_manager_unix.go (+11 -10)
📝 client/internal/dns/resolvconf_unix.go (+12 -11)
📝 client/internal/dns/server.go (+24 -16)
📝 client/internal/dns/server_test.go (+6 -4)
📝 client/internal/dns/server_windows.go (+1 -1)
📝 client/internal/dns/systemd_freebsd.go (+1 -1)
📝 client/internal/dns/systemd_linux.go (+11 -10)

...and 22 more files

📄 Description

Describe your changes

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 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/netbirdio/netbird/pull/2757 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 10/18/2024 **Status:** ✅ Merged **Merged:** 10/24/2024 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `main` ← **Head:** `cleanup-saved-state` --- ### 📝 Commits (10+) - [`2a1ec9b`](https://github.com/netbirdio/netbird/commit/2a1ec9b37300f254162a561b6fdee6ff4d07255e) Add state manager, migrate dns cleanup and add route cleanup - [`d4ef622`](https://github.com/netbirdio/netbird/commit/d4ef6222f9df89b25a635c70765b9f9dd1ac3028) Add mobile dummies - [`c0adf17`](https://github.com/netbirdio/netbird/commit/c0adf1782d522a3cf25f28ed85cb9f0579935eff) Remove broken state files - [`a6cc9f2`](https://github.com/netbirdio/netbird/commit/a6cc9f2d32150e76674487b475844baf3ef662c6) Remove obsolete return - [`c4ac044`](https://github.com/netbirdio/netbird/commit/c4ac04447cf0e15e3a365a69f2938b89e6c4eb3b) Fix log msg - [`631b8dc`](https://github.com/netbirdio/netbird/commit/631b8dc224131b912a068dcc96ac9161e948e720) Fix android build - [`57b350c`](https://github.com/netbirdio/netbird/commit/57b350c6fcb48e026cc928d3efe3cc8353d3f54e) Fix some tests - [`db9e805`](https://github.com/netbirdio/netbird/commit/db9e805b99106bf1904e1e73e7926c5f11dd9706) Fix linter - [`d1240fd`](https://github.com/netbirdio/netbird/commit/d1240fde031e3cb0a9a6b4e149d20fdb2df2797e) Fix dns test - [`9f6eb39`](https://github.com/netbirdio/netbird/commit/9f6eb397d1679c9da2fd5506a4924ca4a60b6830) Remove obsolete return ### 📊 Changes **42 files changed** (+785 additions, -376 deletions) <details> <summary>View changed files</summary> ➕ `client/firewall/nftables/state.go` (+1 -0) 📝 `client/internal/connect.go` (+5 -7) 📝 `client/internal/dns/consts_freebsd.go` (+1 -2) 📝 `client/internal/dns/consts_linux.go` (+1 -2) 📝 `client/internal/dns/file_repair_unix.go` (+5 -3) 📝 `client/internal/dns/file_repair_unix_test.go` (+5 -4) 📝 `client/internal/dns/file_unix.go` (+9 -15) 📝 `client/internal/dns/host.go` (+6 -13) 📝 `client/internal/dns/host_android.go` (+5 -7) 📝 `client/internal/dns/host_darwin.go` (+7 -11) 📝 `client/internal/dns/host_ios.go` (+4 -7) 📝 `client/internal/dns/host_unix.go` (+7 -21) 📝 `client/internal/dns/host_windows.go` (+8 -12) 📝 `client/internal/dns/network_manager_unix.go` (+11 -10) 📝 `client/internal/dns/resolvconf_unix.go` (+12 -11) 📝 `client/internal/dns/server.go` (+24 -16) 📝 `client/internal/dns/server_test.go` (+6 -4) 📝 `client/internal/dns/server_windows.go` (+1 -1) 📝 `client/internal/dns/systemd_freebsd.go` (+1 -1) 📝 `client/internal/dns/systemd_linux.go` (+11 -10) _...and 22 more files_ </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:07:58 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#15569