[PR #3342] wg: keep the ipv6 address from the config on desktop #3213

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

📋 Pull Request Information

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

Base: dev ← Head: fix/wg-ipv6-device-address


📝 Commits (1)

  • 3c032d0 wg: use ipv6 from the config address instead of always the fallback ula

📊 Changes

1 file changed (+20 additions, -3 deletions)

View changed files

📝 client/mozilla/localsocketcontroller.cpp (+20 -3)

📄 Description

the whole Address line went into deviceIpv4Address and ipv6 was always the hardcoded fd58:baa6:dead::1, so a config with "10.8.1.2/32, fd42:42:42::1001/128" got the wrong v6 on the tunnel and the server dropped it. on mac/linux the combined string didnt even parse as ipv4.

now the address list is split, first v4 goes to v4, first v6 goes to v6. the ula fallback is still used when there is no v6 in the config.

fixes #2539


🔄 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/3342 **Author:** [@hasanerman](https://github.com/hasanerman) **Created:** 10/28/2026 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `fix/wg-ipv6-device-address` --- ### 📝 Commits (1) - [`3c032d0`](https://github.com/amnezia-vpn/amnezia-client/commit/3c032d014026aa31cd43425f15ec7de2140def67) wg: use ipv6 from the config address instead of always the fallback ula ### 📊 Changes **1 file changed** (+20 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `client/mozilla/localsocketcontroller.cpp` (+20 -3) </details> ### 📄 Description the whole Address line went into deviceIpv4Address and ipv6 was always the hardcoded fd58:baa6:dead::1, so a config with "10.8.1.2/32, fd42:42:42::1001/128" got the wrong v6 on the tunnel and the server dropped it. on mac/linux the combined string didnt even parse as ipv4. now the address list is split, first v4 goes to v4, first v6 goes to v6. the ula fallback is still used when there is no v6 in the config. fixes #2539 --- <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#3213
No description provided.