[PR #2430] fix(linux): use IPv6 unreachable route instead of disabling IPv6 system-wide #2804

Open
opened 2026-10-14 21:05:24 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amnezia-client/pull/2430
Author: @tyrypyrking
Created: 3/31/2026
Status: 🔄 Open

Base: dev ← Head: fix-ipv6-loopback


📝 Commits (1)

  • 17406da fix(linux): use IPv6 unreachable route instead of disabling IPv6 system-wide

📊 Changes

1 file changed (+11 additions, -50 deletions)

View changed files

📝 service/server/router_linux.cpp (+11 -50)

📄 Description

StopRoutingIpv6() disabled IPv6 system-wide via sysctl, which breaks applications relying on IPv6 loopback (::1). I replaced it with an unreachable default route that prevents IPv6 leaks while keeping localhost intact.
Ex.: Unreal Engine startup crashed if Xray connection was live.


🔄 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/amnezia-vpn/amnezia-client/pull/2430 **Author:** [@tyrypyrking](https://github.com/tyrypyrking) **Created:** 3/31/2026 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `fix-ipv6-loopback` --- ### 📝 Commits (1) - [`17406da`](https://github.com/amnezia-vpn/amnezia-client/commit/17406da74bbd16fb8c710fcfc54c8f60a574d744) fix(linux): use IPv6 unreachable route instead of disabling IPv6 system-wide ### 📊 Changes **1 file changed** (+11 additions, -50 deletions) <details> <summary>View changed files</summary> 📝 `service/server/router_linux.cpp` (+11 -50) </details> ### 📄 Description StopRoutingIpv6() disabled IPv6 system-wide via sysctl, which breaks applications relying on IPv6 loopback (::1). I replaced it with an unreachable default route that prevents IPv6 leaks while keeping localhost intact. Ex.: Unreal Engine startup crashed if Xray connection was live. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#2804
No description provided.