Skip to content

feat: add optional Wintun TUN design stub - #57

Open
moxuan12138 wants to merge 4 commits into
mergeos-bounties:masterfrom
moxuan12138:master
Open

feat: add optional Wintun TUN design stub#57
moxuan12138 wants to merge 4 commits into
mergeos-bounties:masterfrom
moxuan12138:master

Conversation

@moxuan12138

Copy link
Copy Markdown

Summary

Fixes #8.

This PR adds the optional Wintun/WireGuard TUN path design and a CI-safe stub while keeping the SOCKS/HTTP proxy path as the default.

Changes:

  • adds docs/design-tun.md with goals, non-goals, architecture, limitations, and test plan
  • adds src/tun/wintun.js as a no-driver TUN stub
  • exposes TUN status in trucvpn doctor
  • adds regression tests for default disabled behavior, opt-in status, and typed stub errors

Verification

  • node --test tests/tun.test.js tests/catalog.test.js tests/meter.test.js
  • node bin/trucvpn.js doctor

Local result: # pass 10, # fail 0.

This document outlines an optional future Windows packet tunnel path using Wintun/WireGuard, keeping the SOCKS5/HTTP proxy as the default. It includes goals, non-goals, proposed architecture, and safety considerations for the implementation.
@laurentketterle-hub

Copy link
Copy Markdown

🤖 @code-cannot-be-blank CI ALL CLEAN ✅ — PR is mergeable:clean. Ready for MERGE + SETTLE on-chain. Please review and merge. 🙏

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.

[200 MRG] Research: optional Wintun/WireGuard path design + stub

2 participants