Skip to content
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

dioxus-cli version 0.6.3 randomizes server file name, making it impossible to configure firewall #3787

Open
johnny-smitherson opened this issue Feb 22, 2025 · 0 comments

Comments

@johnny-smitherson
Copy link

johnny-smitherson commented Feb 22, 2025

Problem

In some environments, the firewall must always be on. This means each executable that wants to connect to the network in any way, must be manually allowed by the user by clicking a button. On some platforms, like "Windows Advanced Firewall", users cannot make any wildcard/regex rules, only exact path rules - so executable names must be predictable.

dioxus-cli version 0.6.3 now randomizes the server binary name by attaching some random text at the end of the file, just before executing it.

Image

Here it is in task manager:

Image

This means:

  • firewall configurations do not work anymore, as the filename will change every rebuild.
  • using "Windows Advanced Firewall", the user is bombarded with fullscreen modals like these:
Image Image

Steps To Reproduce

Steps to reproduce the behavior:

  • dx --version --> dioxus 0.6.3 (fc1f1c2)
  • dx new, full stack = yes, platform = web
  • dx serve --platform web generates different executable name every rebuild

Expected behavior

Execute from the same path every time.

Or, if really necessary, alternate between server.exe and server.exe-1 so the user only clicks "allow" twice. Through the "access denied because program open" windows-specific problem might be better solved by closing the old process before overwriting?

Screenshots

See above

Environment:

  • Dioxus version: 0.6.3 + 0.6.2
  • Rust version: 1.87 nightly
  • OS info: Windows 11
  • App platform: fullstack web

Questionnaire

Workaround

cargo binstall dioxus-cli@0.6.1 --force -y

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

No branches or pull requests

1 participant