[PR #29] [MERGED] Sync upstream Xray-core v26.10.31 with MPTCP security mitigation #29

Closed
opened 2026-11-07 17:59:43 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amnezia-xray-core/pull/29
Author: @FrogRocky
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @FrogRocky

Base: master ← Head: codex/sync-upstream-v26.10.31


📝 Commits (10+)

  • 2b329b3 Bump docker/login-action from 4 to 4.5.2 (#6556)
  • b02bdcf Bump google.golang.org/grpc from 1.82.1 to 1.83.0 (#6585)
  • fc5620d Bump docker/login-action from 4.5.2 to 4.6.0 (#6610)
  • bc6e966 Bump github.com/cloudflare/circl from 1.6.4 to 1.6.5 (#6609)
  • a000371 Tunnel inbound: Support TPROXY on OpenBSD as well (#6546)
  • a12801c Routing: Add localOS that directly matches runtime.GOOS (#6553)
  • 8b419d8 Routing: Fix process for macOS IPv4-mapped sockets (#6557)
  • 7d214f8 WireGuard outbound: Fix sendThrough support (#6570)
  • 7021606 Bump google.golang.org/protobuf from 1.36.11 to 1.36.12 (#6616)
  • 09107b7 Bump golang.org/x/net from 0.57.0 to 0.58.0 (#6633)

📊 Changes

560 files changed (+55426 additions, -9889 deletions)

View changed files

📝 .github/docker/Dockerfile (+5 -11)
📝 .github/docker/Dockerfile.usa (+5 -11)
📝 .github/workflows/docker.yml (+1 -1)
📝 .github/workflows/scheduled-assets-update.yml (+1 -1)
📝 .github/workflows/test.yml (+4 -21)
📝 app/commander/config.pb.go (+2 -2)
📝 app/dispatcher/config.pb.go (+2 -2)
📝 app/dispatcher/default.go (+3 -0)
📝 app/dispatcher/fakednssniffer.go (+1 -1)
📝 app/dns/config.go (+1 -1)
📝 app/dns/config.pb.go (+24 -6)
📝 app/dns/config.proto (+3 -0)
📝 app/dns/dns.go (+42 -0)
➕ app/dns/dns_internal_test.go (+59 -0)
📝 app/dns/dnscommon.go (+2 -2)
📝 app/dns/fakedns/fake.go (+3 -3)
📝 app/dns/fakedns/fakedns.pb.go (+2 -2)
➕ app/dns/lua.go (+169 -0)
➕ app/dns/lua_benchmark_test.go (+121 -0)
➕ app/dns/lua_test.go (+272 -0)

...and 80 more files

📄 Description

Synchronize master with XTLS/Xray-core v26.10.31 (a4a3dff5), including 6ea0ab5d, which disables inbound MPTCP by default. Explicit sockopt.tcpMptcp: true remains supported. Affected Linux hosts still require a kernel update for CVE-2026-98432.

Review by commit

The fork starts from upstream v26.7.28, so the overall PR diff contains 560 files. Review the fork-specific adjustments through the individual commits below.

Commit Scope What to review
526b7e89 — upstream merge 556 files relative to the fork's previous master Imports upstream history and resolves only nine textual conflicts. No additional FinalMask/fwmark fix is included.
ed6e19db — API compatibility 8 files, +12 / -13 lines Four AmneziaWG TUN import replacements, dependency cleanup, removal of the deleted AtError call, and notification protobuf generator header refresh.
f9e51913 — fwmark fix 2 implementation files and 2 test files Preserve per-user socket marks through the new FinalMask dialers. Implementation change: +13 / -3 lines; tests: 178 lines.
4d9a1a17 — whitespace cleanup 2 .proto files Remove trailing whitespace and an extra final blank line. No behavior or generated-code changes.

The intermediate merge commit does not build by itself: the following API-compatibility commit is required. That combined snapshot builds and passes component tests independently of the later fwmark fix.

Merge conflict resolutions

Manual edits in the merge are limited to these nine conflicted paths:

  • .github/workflows/docker.yml: retain Docker Hub publishing and use the upstream login-action version.
  • go.mod, go.sum: accept upstream dependency versions while retaining AmneziaWG v3.0.1.
  • proxy/freedom/freedom.go: retain per-user context preparation alongside upstream's final-rule handling.
  • proxy/vless/inbound/inbound.go: keep the os import needed by notifications; remove obsolete reflection imports.
  • proxy/tun/tun_freebsd.go, proxy/wireguard/netstack.go, proxy/wireguard/server.go, proxy/wireguard/tun_linux.go: retain AmneziaWG imports with the upstream stack implementation.

For a local view of only the manual merge resolutions: git show --remerge-diff 526b7e89.

Validation

  • Full local suite: 99 packages with tests, including network scenarios, passed.
  • API-compatibility snapshot: executable build and WireGuard/MASQUE/VLESS/outbound tests passed without the later fwmark fix.
  • Fwmark regression tests reproduced lost TCP/UDP marks before the fix; focused tests pass with race detection. The Linux Handler.Dial regression also passed in an isolated Linux container.
  • Linux, Windows, and FreeBSD cross-builds passed. Formatting, protobuf generation, module integrity, and final diff checks passed.
  • The local Linux kernel lacks MPTCP. Temporary listener checks cover ordinary TCP/default and fallback behavior; they do not establish a working MPTCP connection.

Upstream configuration migration: replace legacy JSON outbound.proxySettings with streamSettings.sockopt.dialerProxy.


🔄 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-xray-core/pull/29 **Author:** [@FrogRocky](https://github.com/FrogRocky) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@FrogRocky](https://github.com/FrogRocky) **Base:** `master` ← **Head:** `codex/sync-upstream-v26.10.31` --- ### 📝 Commits (10+) - [`2b329b3`](https://github.com/amnezia-vpn/amnezia-xray-core/commit/2b329b3675538dafe38e67cc92f811e4bbdb1179) Bump docker/login-action from 4 to 4.5.2 (#6556) - [`b02bdcf`](https://github.com/amnezia-vpn/amnezia-xray-core/commit/b02bdcf4ccfffdc911a212388ae1d03bbee00f30) Bump google.golang.org/grpc from 1.82.1 to 1.83.0 (#6585) - [`fc5620d`](https://github.com/amnezia-vpn/amnezia-xray-core/commit/fc5620de986ea4598807a36dea787653127cf345) Bump docker/login-action from 4.5.2 to 4.6.0 (#6610) - [`bc6e966`](https://github.com/amnezia-vpn/amnezia-xray-core/commit/bc6e966af890d0ef481501ec171321ec802c6857) Bump github.com/cloudflare/circl from 1.6.4 to 1.6.5 (#6609) - [`a000371`](https://github.com/amnezia-vpn/amnezia-xray-core/commit/a000371b2aba07140ed56a94bc2e5675fa55f356) Tunnel inbound: Support TPROXY on OpenBSD as well (#6546) - [`a12801c`](https://github.com/amnezia-vpn/amnezia-xray-core/commit/a12801c13b0a72efd2058be6d97763921b1236e2) Routing: Add `localOS` that directly matches `runtime.GOOS` (#6553) - [`8b419d8`](https://github.com/amnezia-vpn/amnezia-xray-core/commit/8b419d833df0e25935667c2b510178137d3b18ad) Routing: Fix `process` for macOS IPv4-mapped sockets (#6557) - [`7d214f8`](https://github.com/amnezia-vpn/amnezia-xray-core/commit/7d214f8b094f75322fa3990f8aadad1c912f24f5) WireGuard outbound: Fix `sendThrough` support (#6570) - [`7021606`](https://github.com/amnezia-vpn/amnezia-xray-core/commit/7021606ad39622255ace8a3ff976b4b2550b3f87) Bump google.golang.org/protobuf from 1.36.11 to 1.36.12 (#6616) - [`09107b7`](https://github.com/amnezia-vpn/amnezia-xray-core/commit/09107b71dc70a3a3c6259a06dde3b7e8605bbf96) Bump golang.org/x/net from 0.57.0 to 0.58.0 (#6633) ### 📊 Changes **560 files changed** (+55426 additions, -9889 deletions) <details> <summary>View changed files</summary> 📝 `.github/docker/Dockerfile` (+5 -11) 📝 `.github/docker/Dockerfile.usa` (+5 -11) 📝 `.github/workflows/docker.yml` (+1 -1) 📝 `.github/workflows/scheduled-assets-update.yml` (+1 -1) 📝 `.github/workflows/test.yml` (+4 -21) 📝 `app/commander/config.pb.go` (+2 -2) 📝 `app/dispatcher/config.pb.go` (+2 -2) 📝 `app/dispatcher/default.go` (+3 -0) 📝 `app/dispatcher/fakednssniffer.go` (+1 -1) 📝 `app/dns/config.go` (+1 -1) 📝 `app/dns/config.pb.go` (+24 -6) 📝 `app/dns/config.proto` (+3 -0) 📝 `app/dns/dns.go` (+42 -0) ➕ `app/dns/dns_internal_test.go` (+59 -0) 📝 `app/dns/dnscommon.go` (+2 -2) 📝 `app/dns/fakedns/fake.go` (+3 -3) 📝 `app/dns/fakedns/fakedns.pb.go` (+2 -2) ➕ `app/dns/lua.go` (+169 -0) ➕ `app/dns/lua_benchmark_test.go` (+121 -0) ➕ `app/dns/lua_test.go` (+272 -0) _...and 80 more files_ </details> ### 📄 Description Synchronize `master` with XTLS/Xray-core v26.10.31 (`a4a3dff5`), including `6ea0ab5d`, which disables inbound MPTCP by default. Explicit `sockopt.tcpMptcp: true` remains supported. Affected Linux hosts still require a kernel update for CVE-2026-98432. ### Review by commit The fork starts from upstream v26.7.28, so the overall PR diff contains 560 files. Review the fork-specific adjustments through the individual commits below. | Commit | Scope | What to review | | --- | --- | --- | | [526b7e89 — upstream merge](https://github.com/amnezia-vpn/amnezia-xray-core/commit/526b7e89ed4c5e3b42f5f9f329aa6a4d692bec28) | 556 files relative to the fork's previous master | Imports upstream history and resolves only nine textual conflicts. No additional FinalMask/fwmark fix is included. | | [ed6e19db — API compatibility](https://github.com/amnezia-vpn/amnezia-xray-core/commit/ed6e19db044129943a2e116d79c7b1a54bada3e5) | 8 files, +12 / -13 lines | Four AmneziaWG TUN import replacements, dependency cleanup, removal of the deleted `AtError` call, and notification protobuf generator header refresh. | | [f9e51913 — fwmark fix](https://github.com/amnezia-vpn/amnezia-xray-core/commit/f9e519130487db0afec2a6d29fb17ec5b7d92419) | 2 implementation files and 2 test files | Preserve per-user socket marks through the new FinalMask dialers. Implementation change: +13 / -3 lines; tests: 178 lines. | | [4d9a1a17 — whitespace cleanup](https://github.com/amnezia-vpn/amnezia-xray-core/commit/4d9a1a175e2470be02be052758c16bfe9aa79c34) | 2 `.proto` files | Remove trailing whitespace and an extra final blank line. No behavior or generated-code changes. | The intermediate merge commit does not build by itself: the following API-compatibility commit is required. That combined snapshot builds and passes component tests independently of the later fwmark fix. ### Merge conflict resolutions Manual edits in the merge are limited to these nine conflicted paths: - `.github/workflows/docker.yml`: retain Docker Hub publishing and use the upstream login-action version. - `go.mod`, `go.sum`: accept upstream dependency versions while retaining AmneziaWG v3.0.1. - `proxy/freedom/freedom.go`: retain per-user context preparation alongside upstream's final-rule handling. - `proxy/vless/inbound/inbound.go`: keep the `os` import needed by notifications; remove obsolete reflection imports. - `proxy/tun/tun_freebsd.go`, `proxy/wireguard/netstack.go`, `proxy/wireguard/server.go`, `proxy/wireguard/tun_linux.go`: retain AmneziaWG imports with the upstream stack implementation. For a local view of only the manual merge resolutions: `git show --remerge-diff 526b7e89`. ### Validation - Full local suite: 99 packages with tests, including network scenarios, passed. - API-compatibility snapshot: executable build and WireGuard/MASQUE/VLESS/outbound tests passed without the later fwmark fix. - Fwmark regression tests reproduced lost TCP/UDP marks before the fix; focused tests pass with race detection. The Linux `Handler.Dial` regression also passed in an isolated Linux container. - Linux, Windows, and FreeBSD cross-builds passed. Formatting, protobuf generation, module integrity, and final diff checks passed. - The local Linux kernel lacks MPTCP. Temporary listener checks cover ordinary TCP/default and fallback behavior; they do not establish a working MPTCP connection. Upstream configuration migration: replace legacy JSON `outbound.proxySettings` with `streamSettings.sockopt.dialerProxy`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:59:43 +07: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/amnezia-xray-core#29
No description provided.