Skip to content

Fix DNS router reset when network changed#4078

Closed
everyx wants to merge 1 commit into
SagerNet:stablefrom
everyx:stable
Closed

Fix DNS router reset when network changed#4078
everyx wants to merge 1 commit into
SagerNet:stablefrom
everyx:stable

Conversation

@everyx
Copy link
Copy Markdown
Contributor

@everyx everyx commented Apr 25, 2026

DNS resolution times out after system resume on Linux because NetworkManager.ResetNetwork() fails to reset the DNS router.

This leaves DNS transport connection pools (UDP/DoH) in a stale state while other components are correctly reset. Calling DNSRouter.ResetNetwork() within NetworkManager ensures that DNS cache and connections are refreshed upon any network state change.

@nekohasekai nekohasekai force-pushed the stable branch 5 times, most recently from 8631cb2 to 2b995ea Compare May 13, 2026 15:39
@everyx everyx closed this May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant