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

Default binding to localhost to avoid firewall dialogues during development on macOS #627

Merged
merged 3 commits into from
Jun 27, 2024
Merged

Default binding to localhost to avoid firewall dialogues during development on macOS #627

merged 3 commits into from
Jun 27, 2024

Conversation

trevoranderson
Copy link
Contributor

On macOS, if you bind to an IP address (such as 127.0.0.1) rather than localhost, then whenever you run the server after making changes you will receive a prompt from the system asking whether or not to allow connections.

Do you want the application “locoapp-cli” to accept incoming network connections?
Clicking Deny may limit the application’s behavior. This setting can be changed in the Firewall pane of Network Settings.

This is a bit annoying, so this code changes the default to localhost. Previously, the default was [::] which is the same thing but triggers the firewall prompt.

@jondot
Copy link
Contributor

jondot commented Jun 23, 2024

Hi! thanks for catching this. I feel it's a good change. It seems to me that this specific code change might nullify the configuration value (since it does not take into account the previous line which asks for the value from config).

Could you take a look at this case?

@trevoranderson
Copy link
Contributor Author

Moved the change to a place that looks more like the root cause. @jondot

@jondot
Copy link
Contributor

jondot commented Jun 26, 2024

@jondot
Copy link
Contributor

jondot commented Jun 26, 2024

@trevoranderson could you check out the CI failures?

@jondot jondot merged commit 72fe2e9 into loco-rs:master Jun 27, 2024
12 checks passed
@trevoranderson trevoranderson deleted the mac_localhost_default branch June 27, 2024 16:42
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