Skip to content

[Alpha] fix(wireguard): prefer mips over gVisor for outbound auto IP stack on Windows - #3112

Open
notlun1x wants to merge 2 commits into
MetaCubeX:Alphafrom
notlun1x:Alpha
Open

[Alpha] fix(wireguard): prefer mips over gVisor for outbound auto IP stack on Windows#3112
notlun1x wants to merge 2 commits into
MetaCubeX:Alphafrom
notlun1x:Alpha

Conversation

@notlun1x

Copy link
Copy Markdown

IPStackOption's "auto" mode picked ipStackGVisor whenever the binary was built with the with_gvisor tag (the default for official releases), regardless of OS. On Windows this measured roughly 3x lower WireGuard outbound upload throughput than ipStackMips on otherwise identical builds and network paths (~15 Mbps vs ~50 Mbps).

mips carries no build-tag requirement and is already the fallback for non-with_gvisor builds, so prefer it on Windows unconditionally and keep the existing gVisor-if-built behavior on other platforms, where this hasn't been observed to regress throughput.

Benchmark (Windows 11 x64, 50/50 Mbps WAN):

  • with_gvisor build + mode: auto (gvisor): 15.09 Mbps Upload
  • with_gvisor build + mode: mips (mips): 49.96 Mbps Upload
  • clean build (without with_gvisor): 48.21 Mbps Upload

…Windows

IPStackOption's "auto" mode picked ipStackGVisor whenever the binary was
built with the with_gvisor tag (the default for official releases),
regardless of OS. On Windows this measured roughly 3x lower WireGuard
outbound upload throughput than ipStackMips on otherwise identical
builds and network paths (~15 Mbps vs ~50 Mbps).
mips carries no build-tag requirement and is already the fallback for
non-with_gvisor builds, so prefer it on Windows unconditionally and
keep the existing gVisor-if-built behavior on other platforms, where
this hasn't been observed to regress throughput.
Benchmark (Windows 11 x64, 50/50 Mbps WAN):
- with_gvisor build + mode: auto (gvisor): 15.09 Mbps Upload
- with_gvisor build + mode: mips (mips):   49.96 Mbps Upload
- clean build (without with_gvisor):       48.21 Mbps Upload
fix: prefer mips over gVisor for wireguard outbound auto IP stack on …
@notlun1x notlun1x changed the title Alpha [Alpha] fix(wireguard): prefer mips over gVisor for outbound auto IP stack on Windows Aug 15, 2026
@wwqgtxx

wwqgtxx commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

mipstack is still in the early stages of rapid development, and there remains a gap in stability and robustness compared to gVisor; consequently, we do not currently consider this the right time to set it as the default.

Furthermore, we lack sufficient comparative data from other platforms to make an informed decision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants