[PR #3341] awg: check h1-h4 ranges for overlap #3212

Open
opened 2026-10-30 04:58:01 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amnezia-client/pull/3341
Author: @hasanerman
Created: 10/28/2026
Status: 🔄 Open

Base: dev ← Head: fix/awg-header-range-overlap


📝 Commits (1)

  • 04e0b49 awg: check h1-h4 ranges for overlap, not just string equality

📊 Changes

3 files changed (+113 additions, -4 deletions)

View changed files

📝 client/core/models/protocols/awgProtocolConfig.cpp (+59 -4)
📝 client/tests/CMakeLists.txt (+10 -0)
➕ client/tests/testAwgHeaders.cpp (+44 -0)

📄 Description

isHeadersEqual only compared strings so 100-200 and 150-250 got saved fine. now it parses the ranges and checks overlap. added a small test.

refs #3073


🔄 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/3341 **Author:** [@hasanerman](https://github.com/hasanerman) **Created:** 10/28/2026 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `fix/awg-header-range-overlap` --- ### 📝 Commits (1) - [`04e0b49`](https://github.com/amnezia-vpn/amnezia-client/commit/04e0b49f7a1e25f45b331cf572c4afc2bde04d0b) awg: check h1-h4 ranges for overlap, not just string equality ### 📊 Changes **3 files changed** (+113 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `client/core/models/protocols/awgProtocolConfig.cpp` (+59 -4) 📝 `client/tests/CMakeLists.txt` (+10 -0) ➕ `client/tests/testAwgHeaders.cpp` (+44 -0) </details> ### 📄 Description isHeadersEqual only compared strings so 100-200 and 150-250 got saved fine. now it parses the ranges and checks overlap. added a small test. refs #3073 --- <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#3212
No description provided.