[PR #3011] fix: preserve site split tunneling for IPv4-only AWG configs #3051

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

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amnezia-client/pull/3011
Author: @yudin-s
Created: 8/20/2026
Status: 🔄 Open

Base: dev ← Head: fix/macos-awg-site-split-tunneling


📝 Commits (1)

  • a617b90 fix: preserve site split tunneling for IPv4-only AWG configs

📊 Changes

2 files changed (+13 additions, -4 deletions)

View changed files

📝 client/mozilla/localsocketcontroller.cpp (+2 -1)
📝 client/vpnConnection.cpp (+11 -3)

📄 Description

Fixes #2907.

Imported AmneziaWG configurations may contain 0.0.0.0/0 without an IPv6 default route. Treat the IPv4 default route as sufficient for IPv4 site split tunneling, and normalize legacy comma-separated AllowedIPs values before checking it.

For the only-forward-sites mode, prefer the selected site list over the imported IPv4 default route. Configurations without an IPv4 default route fall back to full tunnel instead of sending a split mode with an empty site list.

Testing:

  • git diff --check
  • focused route-decision checks for IPv4-only, dual-stack, only-forward-sites, legacy string, and custom-CIDR cases

Not run: end-to-end macOS route test, which requires an imported amnezia-awg configuration.


🔄 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/3011 **Author:** [@yudin-s](https://github.com/yudin-s) **Created:** 8/20/2026 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `fix/macos-awg-site-split-tunneling` --- ### 📝 Commits (1) - [`a617b90`](https://github.com/amnezia-vpn/amnezia-client/commit/a617b909d2af4ba3e6e5fc16a43bcf9e1b888eba) fix: preserve site split tunneling for IPv4-only AWG configs ### 📊 Changes **2 files changed** (+13 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `client/mozilla/localsocketcontroller.cpp` (+2 -1) 📝 `client/vpnConnection.cpp` (+11 -3) </details> ### 📄 Description Fixes #2907. Imported AmneziaWG configurations may contain `0.0.0.0/0` without an IPv6 default route. Treat the IPv4 default route as sufficient for IPv4 site split tunneling, and normalize legacy comma-separated `AllowedIPs` values before checking it. For the only-forward-sites mode, prefer the selected site list over the imported IPv4 default route. Configurations without an IPv4 default route fall back to full tunnel instead of sending a split mode with an empty site list. Testing: - `git diff --check` - focused route-decision checks for IPv4-only, dual-stack, only-forward-sites, legacy string, and custom-CIDR cases Not run: end-to-end macOS route test, which requires an imported `amnezia-awg` configuration. --- <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#3051
No description provided.