[PR #160] Потеря первого transport-пакета при настройке S4 #173

Open
opened 2026-10-13 21:04:16 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amneziawg-go/pull/160
Author: @Pudums
Created: 7/24/2026
Status: 🔄 Open

Base: master ← Head: fixes


📝 Commits (1)

📊 Changes

4 files changed (+112 additions, -8 deletions)

View changed files

📝 README.md (+1 -1)
📝 device/device_test.go (+85 -0)
📝 device/send.go (+9 -3)
📝 tun/tuntest/tuntest.go (+17 -4)

📄 Description

Исправлена обработка случая, когда S4 меняется во время блокирующего чтения из TUN, из-за чего первый transport-пакет отправлялся со старым padding. Добавлены регрессионные тесты и проверка минимального значения S1–S4 = 12 для Header Protection


🔄 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/amneziawg-go/pull/160 **Author:** [@Pudums](https://github.com/Pudums) **Created:** 7/24/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `fixes` --- ### 📝 Commits (1) - [`5b9bf32`](https://github.com/amnezia-vpn/amneziawg-go/commit/5b9bf321bda514c0ea5e2710001e6f480526b161) fixes ### 📊 Changes **4 files changed** (+112 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -1) 📝 `device/device_test.go` (+85 -0) 📝 `device/send.go` (+9 -3) 📝 `tun/tuntest/tuntest.go` (+17 -4) </details> ### 📄 Description Исправлена обработка случая, когда S4 меняется во время блокирующего чтения из TUN, из-за чего первый transport-пакет отправлялся со старым padding. Добавлены регрессионные тесты и проверка минимального значения S1–S4 = 12 для Header Protection --- <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/amneziawg-go#173
No description provided.