[PR #78] [MERGED] Sync with Major Upstream changes #130

Closed
opened 2026-10-13 21:03:53 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amneziawg-go/pull/78
Author: @jmwample
Created: 6/23/2025
Status: ✅ Merged
Merged: 7/2/2025
Merged by: @pokamest

Base: master ← Head: jmwample/upstream


📝 Commits (10+)

  • deedce4 device: fix WaitPool sync.Cond usage
  • c803ce1 device: fix missed return of QueueOutboundElementsContainer to its WaitPool
  • c0b6e6a global: bump copyright notice
  • 704d57c mod: bump deps
  • 6a7c878 tun/netstack: remove usage of pkt.IsNil()
  • ac8a885 tun/netstack: cleanup network stack at closing time
  • 75d6c67 tun: use add-with-carry in checksumNoFold()
  • 8a2b2bf tun: darwin: fetch flags and mtu from if_msghdr directly
  • ace3e11 global: replaced unused function params with _
  • 8051f17 device: use rand.NewSource instead of rand.Seed

📊 Changes

96 files changed (+437 additions, -264 deletions)

View changed files

📝 README.md (+1 -0)
📝 conn/bind_std.go (+1 -1)
📝 conn/bind_windows.go (+1 -1)
📝 conn/bindtest/bindtest.go (+1 -1)
📝 conn/boundif_android.go (+1 -1)
📝 conn/conn.go (+1 -1)
📝 conn/conn_test.go (+1 -1)
📝 conn/controlfns.go (+1 -1)
📝 conn/controlfns_linux.go (+49 -1)
📝 conn/controlfns_unix.go (+1 -1)
📝 conn/controlfns_windows.go (+1 -1)
📝 conn/default.go (+1 -1)
📝 conn/errors_default.go (+2 -2)
📝 conn/errors_linux.go (+1 -1)
📝 conn/features_default.go (+2 -2)
📝 conn/features_linux.go (+1 -1)
📝 conn/gso_default.go (+1 -1)
📝 conn/gso_linux.go (+1 -1)
📝 conn/mark_default.go (+1 -1)
📝 conn/mark_unix.go (+1 -1)

...and 76 more files

📄 Description

This PR cherrypicks most of the major patch that was recently added to https://github.com/WireGuard/wireguard-go in May 2025

The two exceptions are github.com/amnezia-vpn/amneziawg-go@264889f0bb and github.com/amnezia-vpn/amneziawg-go@9e7529c3d2 which I chose to skip for simplicity. The upstream library adds an optimization to message encoding /decoding by eliminating binary.Write without making any changes to message formats in order to speed up the process of serialization / deserialization. These may be relatively straightforward to apply, but may involve re-validating message encoding related to amnezia headers.

closes #77


🔄 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/78 **Author:** [@jmwample](https://github.com/jmwample) **Created:** 6/23/2025 **Status:** ✅ Merged **Merged:** 7/2/2025 **Merged by:** [@pokamest](https://github.com/pokamest) **Base:** `master` ← **Head:** `jmwample/upstream` --- ### 📝 Commits (10+) - [`deedce4`](https://github.com/amnezia-vpn/amneziawg-go/commit/deedce495a1616d4be20d8a12d78275abeb52d16) device: fix WaitPool sync.Cond usage - [`c803ce1`](https://github.com/amnezia-vpn/amneziawg-go/commit/c803ce1e5bd7723274500226ee56395a50c3ab8f) device: fix missed return of QueueOutboundElementsContainer to its WaitPool - [`c0b6e6a`](https://github.com/amnezia-vpn/amneziawg-go/commit/c0b6e6a2001c1ad6529e30cb4a289467a5684b3c) global: bump copyright notice - [`704d57c`](https://github.com/amnezia-vpn/amneziawg-go/commit/704d57c27a6421df4fe5382eb9a524fc446511bd) mod: bump deps - [`6a7c878`](https://github.com/amnezia-vpn/amneziawg-go/commit/6a7c878409f32dc39a82bc597766c81304ab9840) tun/netstack: remove usage of pkt.IsNil() - [`ac8a885`](https://github.com/amnezia-vpn/amneziawg-go/commit/ac8a885a0361332602c51164aa87da2607146e27) tun/netstack: cleanup network stack at closing time - [`75d6c67`](https://github.com/amnezia-vpn/amneziawg-go/commit/75d6c67a6711190bdee63770f7796446c5bbad01) tun: use add-with-carry in checksumNoFold() - [`8a2b2bf`](https://github.com/amnezia-vpn/amneziawg-go/commit/8a2b2bf4f49f56ef379dfb2104d1d312e4479182) tun: darwin: fetch flags and mtu from if_msghdr directly - [`ace3e11`](https://github.com/amnezia-vpn/amneziawg-go/commit/ace3e11ef24195c2670e619d0a743c13af89ecf4) global: replaced unused function params with _ - [`8051f17`](https://github.com/amnezia-vpn/amneziawg-go/commit/8051f1714771201e1c1daccfb93f0a0847a29b21) device: use rand.NewSource instead of rand.Seed ### 📊 Changes **96 files changed** (+437 additions, -264 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) 📝 `conn/bind_std.go` (+1 -1) 📝 `conn/bind_windows.go` (+1 -1) 📝 `conn/bindtest/bindtest.go` (+1 -1) 📝 `conn/boundif_android.go` (+1 -1) 📝 `conn/conn.go` (+1 -1) 📝 `conn/conn_test.go` (+1 -1) 📝 `conn/controlfns.go` (+1 -1) 📝 `conn/controlfns_linux.go` (+49 -1) 📝 `conn/controlfns_unix.go` (+1 -1) 📝 `conn/controlfns_windows.go` (+1 -1) 📝 `conn/default.go` (+1 -1) 📝 `conn/errors_default.go` (+2 -2) 📝 `conn/errors_linux.go` (+1 -1) 📝 `conn/features_default.go` (+2 -2) 📝 `conn/features_linux.go` (+1 -1) 📝 `conn/gso_default.go` (+1 -1) 📝 `conn/gso_linux.go` (+1 -1) 📝 `conn/mark_default.go` (+1 -1) 📝 `conn/mark_unix.go` (+1 -1) _...and 76 more files_ </details> ### 📄 Description This PR cherrypicks most of the major patch that was recently added to https://github.com/WireGuard/wireguard-go in May 2025 The two exceptions are https://github.com/amnezia-vpn/amneziawg-go/commit/264889f0bbdf9250bb8389a637dd5f38389bfe0b and https://github.com/amnezia-vpn/amneziawg-go/commit/9e7529c3d2d0c54f4d5384c01645a9279e4740ae which I chose to skip for simplicity. The upstream library adds an optimization to message encoding /decoding by eliminating `binary.Write` without making any changes to message formats in order to speed up the process of serialization / deserialization. These may be relatively straightforward to apply, but may involve re-validating message encoding related to amnezia headers. closes #77 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-13 21:03:53 +00:00
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#130
No description provided.