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(cli): addr parameter of dx serve #3351

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rummatee
Copy link

When I run dx serve --addr 0.0.0.0 in order to receive requests from any ip address, then currently the dev server tries to forward this request to 0.0.0.0, however since the proxied server is always started on the same machine, I believe that the request should always be forwarded to localhost.

Is that correct, or am I misunderstanding how the addr parameter should work?

I was also considering changing the address to localhost in the proxied_server_address function as well, so that also the proxied server would always only listen to localhost, but then I thought it might be useful to be able to reach it directly as well, when specifying the address as 0.0.0.0 and calling from another host.

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