[PR #3321] fix: allocate WireGuard client IP independently of peer order #3190

Open
opened 2026-10-25 04:15:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amnezia-client/pull/3321
Author: @wBaob
Created: 10/23/2026
Status: 🔄 Open

Base: dev ← Head: fix/wireguard-unsorted-peer-addresses


📝 Commits (1)

  • 58ee066 fix: allocate WireGuard client IP independently of peer order

📊 Changes

1 file changed (+6 additions, -1 deletions)

View changed files

📝 client/core/configurators/wireguardConfigurator.cpp (+6 -1)

📄 Description

Fixes #3261.

Select the numerically highest peer IPv4 address instead of the last entry to prevent duplicate IP allocation when peers are reordered.

Validation: standalone Qt 6 harness, 1010 checks. Previous logic: 972 failures. Patched logic: 0 failures. git diff --check passed.

Full application build and live VPN validation were not run.


🔄 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/3321 **Author:** [@wBaob](https://github.com/wBaob) **Created:** 10/23/2026 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `fix/wireguard-unsorted-peer-addresses` --- ### 📝 Commits (1) - [`58ee066`](https://github.com/amnezia-vpn/amnezia-client/commit/58ee0660c9395fe17cb14564f90ddcdfc1526294) fix: allocate WireGuard client IP independently of peer order ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `client/core/configurators/wireguardConfigurator.cpp` (+6 -1) </details> ### 📄 Description Fixes #3261. Select the numerically highest peer IPv4 address instead of the last entry to prevent duplicate IP allocation when peers are reordered. Validation: standalone Qt 6 harness, 1010 checks. Previous logic: 972 failures. Patched logic: 0 failures. git diff --check passed. Full application build and live VPN validation were not run. --- <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#3190
No description provided.