Skip to content

Fix Windows TUN when FlClash is already elevated - #2380

Closed
cakeni wants to merge 9 commits into
chen08209:devfrom
cakeni:fix/windows-tun-2368
Closed

Fix Windows TUN when FlClash is already elevated#2380
cakeni wants to merge 9 commits into
chen08209:devfrom
cakeni:fix/windows-tun-2368

Conversation

@cakeni

@cakeni cakeni commented Aug 30, 2026

Copy link
Copy Markdown

Addresses #2368.

On Windows, an already-elevated FlClash still preferred the Helper service, which moved FlClashCore into Session 0. That defeats the user-session elevation path and matches the TUN/service-mode failure reproduced on Windows 11 25H2.

This keeps the existing Helper flow for normal unelevated launches, but when the GUI is already elevated it starts Core directly so the child inherits the elevated token and remains in the interactive user session.

A resolver regression test covers the elevated Windows path and verifies that the Helper is not probed.

Validation: git diff --check. The local machine does not currently have a Flutter SDK available, so the Flutter test suite was not run locally.

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.

2 participants