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

hosts: when binding to unspecified address allow requests from localhost #549

Merged
merged 1 commit into from
May 22, 2020

Conversation

andresilva
Copy link
Contributor

Setting address to unspecified usually means that we're interested to listen on all interfaces so IMO it makes sense that we won't be filtering requests from localhost.

Found this while debugging substrate since when running with --unsafe-rpc-external we will bind to 0.0.0.0 (which is opaque to the user) and will enable host filtering. It was surprising to me that requests to localhost or 127.0.0.1 wouldn't work. If you prefer I can instead make sure that substrate always add localhost and 127.0.0.1 as allowed hosts but imo this is a nice default to have here.

Copy link
Contributor

@tomusdrw tomusdrw left a comment

Choose a reason for hiding this comment

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

Looks sensible, thanks!

@tomusdrw tomusdrw merged commit 0d31c50 into master May 22, 2020
@tomusdrw tomusdrw deleted the andre/allow-localhost-on-unspecified-addr branch May 22, 2020 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants