-
Notifications
You must be signed in to change notification settings - Fork 329
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
Use "localhost" instead of "127.0.0.1" for the sidecar host address #1032
Comments
Hi @cgillum.
|
Thanks for the response @ondmal.
Just throwing this out there, but how about
Yes, the switch to localhost solves the immediate blockers that I'm running into more easily than an environment variable would. |
I do not know the system well, so I can´t say what is already reserved. But EDIT: Looks like https://github.com/search?p=1&q=org%3Adapr+DAPR_HOST&type=Code but it is missing here in docs: https://docs.dapr.io/reference/environment/ |
Describe the proposal
Currently we use
127.0.0.1
when accessing the Dapr sidecar from the .NET SDK. This is hardcoded here. We should change this to instead belocalhost
because:127.0.0.1
only works with IPv4 whereaslocalhost
works with both IPv4 and IPv6.localhost
, using127.0.0.1
can't resolve to local WSL2 endpoints from the Windows OS, which is a hindrance for local dev/test on Windows.As an alternative, we could consider making the host address configurable via an environment variable.
The text was updated successfully, but these errors were encountered: