mirror of
https://github.com/fatedier/frp.git
synced 2026-11-05 07:51:36 +08:00
deps: bump wireguard-go to 2026-10-24 snapshot (#5603)
Upgrade golang.zx2c4.com/wireguard from v0.0.0-20231211153847-12269c276173 (2023-12-11) to v0.0.0-20261024220952-b3bc704ef0ee (2026-10-24). Only go.mod and go.sum change; the go and toolchain lines are unchanged. The new snapshot requires a newer gvisor snapshot (v0.0.0-20250503011706-39ed1f5ac29c), which moves through MVS and is reflected in go.sum. frp uses wireguard-go only through its tun package for the virtual net feature. The tun changes in this range are the Linux GRO path (clear the virtioNetHdr in the receive buffer), checksum add-with-carry handling, and darwin reading the interface flags and MTU directly from route events. The Device API is unchanged and no code changes are needed. This is not a security fix: govulncheck reports the same result before and after. Binary size is unchanged for both frpc and frps. Validation: - go build ./... - go test -count=1 ./... (all packages pass except the pre-existing test/e2e/compatibility failure, which needs explicit baseline binary flags and fails on a clean checkout as well) - make e2e with the real binaries: 261 passed, 2 skipped - repo-wide golangci-lint run: 0 issues - govulncheck ./...: unchanged (11 reachable standard-library advisories, no wireguard or gvisor entries) - Binary size with embedded web assets (CGO_ENABLED=0, -trimpath, -ldflags "-s -w"): frpc 15,607,842 bytes and frps 19,307,122 bytes, identical before and after - Manual virtual net smoke test on linux/arm64 (frps, an frpc virtual-net server and an frpc visitor over the built-in TUN): TUN name, MTU and routes match the old version, ICMP has 0% loss both ways, a 256 MB TCP transfer matches sha256, throughput is about 41 MB/s on both versions, and concurrent connections, high-rate pings, a 45s idle connection and restart recovery all pass without panics. The repository e2e suite has no virtual net coverage, so this is a one-off manual check.
This commit is contained in:
@@ -33,7 +33,7 @@ require (
|
||||
golang.org/x/sync v0.24.0
|
||||
golang.org/x/sys v0.49.0
|
||||
golang.org/x/time v0.16.0
|
||||
golang.zx2c4.com/wireguard v0.0.0-20231211153847-12269c276173
|
||||
golang.zx2c4.com/wireguard v0.0.0-20261024220952-b3bc704ef0ee
|
||||
gopkg.in/ini.v1 v1.67.3
|
||||
k8s.io/apimachinery v0.37.2
|
||||
k8s.io/client-go v0.37.2
|
||||
|
||||
Reference in New Issue
Block a user