mirror of
https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git
synced 2026-10-13 21:34:34 +00:00
[PR #164] fix: restore per-peer legacy WireGuard client support #213
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amneziawg-linux-kernel-module#213
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/pull/164
Author: @otternetwork
Created: 4/5/2026
Status: 🔄 Open
Base:
master← Head:fix/restore-legacy-client-support📝 Commits (1)
27c4269fix: restore per-peer legacy WireGuard client support📊 Changes
2 files changed (+86 additions, -43 deletions)
View changed files
📝
src/receive.c(+27 -6)📝
src/send.c(+59 -37)📄 Description
Summary
Restores the per-peer
advanced_securitychecks in send and receive paths that were removed by commite939553("feat: implement H1-H4 ranged headers"). This re-enables mixed-mode operation where an AmneziaWG server can simultaneously serve both standard WireGuard and AmneziaWG clients, as originally introduced in PR #16.peer->advanced_securitymh_genheader()headers for AWG peersprepare_awg_message()to accept standard WireGuard packetsThe auto-detection in
noise.c(which setspeer->advanced_securitybased on whether the incoming handshake used a custom magic header) was already correct and is unchanged.Test plan
Closes #162
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.