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 (cherry-pick #16707)#16738

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
matifali merged 1 commit intorelease/2.20fromcherry-pick-53a920-release/2.20
Feb 28, 2025

Conversation

gcp-cherry-pick-bot[bot]
Copy link

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

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

Prevents the VPN startup from hanging for 5 minutes due to a startupbackoff if `wintun.dll` cannot be loaded.Because the `wintun` package doesn't expose an easy `Load() error`method for us, the only way for us to force it to load (without unwantedside effects) is through `wintun.Version()` which doesn't return anerror message.So, we call that function so the `wintun` package loads the DLL andconfigures the logging properly, then we try to load the DLL ourselves.`LoadLibraryEx` will not load the library multiple times and returns areference to the existing library.Closescoder/coder-desktop-windows#24
@matifalimatifali merged commit780b271 intorelease/2.20Feb 28, 2025
32 checks passed
@matifalimatifali deleted the cherry-pick-53a920-release/2.20 branchFebruary 28, 2025 07:48
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsFeb 28, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@deansheatherdeansheatherdeansheather approved these changes

@stirbystirbyAwaiting requested review from stirby

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@deansheather@matifali

[8]ページ先頭

©2009-2025 Movatter.jp