Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(vpn): fail early if wintun.dll is not present#16707

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
deansheather merged 1 commit intomainfromdean/wintun-check
Feb 28, 2025

Conversation

deansheather
Copy link
Member

Prevents the VPN startup from hanging for 5 minutes due to a startup backoff ifwintun.dll cannot be loaded.

Because thewintun package doesn't expose an easyLoad() error method for us, the only way for us to force it to load (without unwanted side effects) is throughwintun.Version() which doesn't return an error message.

So, we call that function so thewintun package loads the DLL and configures the logging properly, then we try to load the DLL ourselves.LoadLibraryEx will not load the library multiple times and returns a reference to the existing library.

Closescoder/coder-desktop-windows#24

@deansheatherdeansheather merged commitb23e05b intomainFeb 28, 2025
32 checks passed
@deansheatherdeansheather deleted the dean/wintun-check branchFebruary 28, 2025 04:20
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsFeb 28, 2025
@matifali
Copy link
Member

/cherry-pick release/2.20

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@sreyasreyasreya approved these changes

@ethanndicksonethanndicksonethanndickson approved these changes

@spikecurtisspikecurtisAwaiting requested review from spikecurtis

Assignees

@deansheatherdeansheather

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

The TUN code in coder/coder should fail early if there is no wintun.dll
4 participants
@deansheather@matifali@sreya@ethanndickson

[8]ページ先頭

©2009-2025 Movatter.jp