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

Fix serving NomadNet pages from Windows #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

liamcottle
Copy link

@liamcottle liamcottle commented Dec 20, 2024

As discussed in markqvist/Reticulum#636, it's currently not possible to serve NomadNet pages from a Windows machine.

This is because Windows sets files as executable by default, which means NomadNet tries to execute them when the page is requested. This fails on Windows with the error not a valid Win32 application.

To allow serving pages on Windows, this PR just skips trying to execute the file when running on Windows, and instead returns the plain text file contents.

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.

1 participant