Skip to content

internal/engine: remove the netstack mode - #26

Merged
brofranks merged 1 commit into
mainfrom
no-netstack
Nov 4, 2026
Merged

brofranks merged 1 commit into
mainfrom
no-netstack

Conversation

@brofranks

Copy link
Copy Markdown
Owner

Options.Netstack served only tests: the CLI runs a kernel TUN and the Apple and Android providers inject a device. Its import of wgengine/netstack alone linked ipnlocal, controlclient, logtail, logpolicy, dnsfallback, safesocket and much of gVisor. The linux/amd64 binary and the Apple bridge archives shrink by about 30%, and the binary links 441 packages instead of 520.

Engine tests now run against a test-only gVisor stack behind an injected tun.Device, the same path the providers use.

Options.Netstack served only tests: the CLI runs a kernel TUN and the
Apple and Android providers inject a device. Its import of
wgengine/netstack alone linked ipnlocal, controlclient, logtail,
logpolicy, dnsfallback, safesocket and much of gVisor. The linux/amd64
binary and the Apple bridge archives shrink by about 30%, and the binary
links 441 packages instead of 520.

Engine tests now run against a test-only gVisor stack behind an injected
tun.Device, the same path the providers use.

Signed-off-by: Brody Franks <brody@franks.id.au>
@brofranks
brofranks merged commit 8aaeb99 into main Nov 4, 2026
18 checks passed
@brofranks
brofranks deleted the no-netstack branch November 4, 2026 07:44
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.

1 participant