[PR #2648] fix: pass S3/S4 params for all AWG containers, not only Awg2 #2885

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

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amnezia-client/pull/2648
Author: @artmchk-pixel
Created: 5/23/2026
Status: 🔄 Open

Base: dev ← Head: fix/awg-s3-s4-third-party-config


📝 Commits (1)

  • fe8010f fix: pass S3/S4 params for all AWG containers, not only Awg2

📊 Changes

1 file changed (+2 additions, -4 deletions)

View changed files

📝 client/core/configurators/awgConfigurator.cpp (+2 -4)

📄 Description

Problem

cookieReplyPacketJunkSize and transportPacketJunkSize (S3/S4) were only
set when container == DockerContainer::Awg2. This caused AWG 2.0 to not
work for third-party imported configs (vpn:// links) on Linux because
those use DockerContainer::Awg.

Root cause

In awgConfigurator.cpp, S3/S4 were wrapped in:
if (container == DockerContainer::Awg2) { ... }

Fix

Remove the condition so S3/S4 are always passed regardless of container type.

Fixes #2219


🔄 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/2648 **Author:** [@artmchk-pixel](https://github.com/artmchk-pixel) **Created:** 5/23/2026 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `fix/awg-s3-s4-third-party-config` --- ### 📝 Commits (1) - [`fe8010f`](https://github.com/amnezia-vpn/amnezia-client/commit/fe8010f6bc6766402dc086c9552c7031972fa9e0) fix: pass S3/S4 params for all AWG containers, not only Awg2 ### 📊 Changes **1 file changed** (+2 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `client/core/configurators/awgConfigurator.cpp` (+2 -4) </details> ### 📄 Description ## Problem cookieReplyPacketJunkSize and transportPacketJunkSize (S3/S4) were only set when container == DockerContainer::Awg2. This caused AWG 2.0 to not work for third-party imported configs (vpn:// links) on Linux because those use DockerContainer::Awg. ## Root cause In awgConfigurator.cpp, S3/S4 were wrapped in: if (container == DockerContainer::Awg2) { ... } ## Fix Remove the condition so S3/S4 are always passed regardless of container type. Fixes #2219 --- <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#2885
No description provided.