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

[Web] Fix serve.py utility on Windows #90698

Merged

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented Apr 15, 2024

IPv6 dual stack is disabled by default, and Windows resolves wildcard addresses to an IPv6 by default, so connecting through the local IPv4 address would not work.

This enables IPv6 dual stacking for the HTTP server by default like done in upstream python when launching the module from CLI.

Fixes #90695 .

platform/web/serve.py Outdated Show resolved Hide resolved
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not tested, but the code looks fine to me.

@Faless Faless requested a review from akien-mga April 15, 2024 17:14
@Faless Faless force-pushed the fix/web/serve_py_dual_stack_windows branch from f23dc02 to 5ffe844 Compare April 15, 2024 17:16
IPv6 dual stack is disabled by default, and Windows resolves wildcard
addresses to an IPv6 by default, so connecting through the local IPv4
address would not work.

This enables IPv6 dual stacking for the HTTP server by default like done
in upstream python when launching the module from CLI.
@Faless Faless force-pushed the fix/web/serve_py_dual_stack_windows branch from 5ffe844 to 67a51c9 Compare April 15, 2024 17:16
@akien-mga akien-mga merged commit 79173d1 into godotengine:master Apr 16, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@akien-mga akien-mga added the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Apr 16, 2024
@Faless Faless deleted the fix/web/serve_py_dual_stack_windows branch April 16, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release platform:web topic:buildsystem topic:export
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Browser gets an "ERR_CONNECTION_REFUSED" when trying to run a web build locally with serve.py script
3 participants