Skip to content

chore: get TUN/DNS working on Windows for CoderVPN #16310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 29, 2025
Merged

Conversation

deansheather
Copy link
Member

Reworks some of the vpn.Tunnel code so it better suits the way TUN, the Router and the DNSConfigurator are instantiated on Windows.

Reworks some of the vpn.Tunnel code so it better suits the way TUN, the
Router and the DNSConfigurator are instantiated on Windows.
return time.Duration(int64(r)) * time.Millisecond
}

// TODO(@dean): implement a way to install/uninstall the wintun driver, most
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@ethanndickson ethanndickson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I built a custom dylib with this branch and can confirm it hasn't broken the darwin implementation in any way.

vpn/tunnel.go Outdated
Comment on lines 236 to 238
if t.networkingStackFn == nil {
return xerrors.New("dev error: missing networking stack function")
}
Copy link
Member

@ethanndickson ethanndickson Jan 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

networkingStackFn needs to be set on Linux in the tunnel_internal_tests

@deansheather deansheather enabled auto-merge (squash) January 29, 2025 07:58
@deansheather deansheather merged commit 2808816 into main Jan 29, 2025
32 checks passed
@deansheather deansheather deleted the dean/windows-tun branch January 29, 2025 08:09
@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants