This repository has been archived by the owner on Dec 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 527
Don't bind if only port is specified. #814
Comments
muratg
changed the title
Bind to localhost when only given a port
Don't bind if only port is specified.
May 18, 2016
Change of plans (as reflected in the title). Remove support for only specifying the port. People make bad assumptions about the rest of the prefix. |
mikeharder
added a commit
that referenced
this issue
May 21, 2016
mikeharder
added a commit
that referenced
this issue
May 21, 2016
- Also renamed ServerAddressFacts to ServerAddressTests to match existing test classes
Since this is a breaking change, I plan to create an issue under https://github.com/aspnet/Announcements after this is merged. |
mikeharder
added a commit
that referenced
this issue
May 23, 2016
- Also renamed ServerAddressFacts to ServerAddressTests to match existing test classes
mikeharder
added a commit
that referenced
this issue
May 23, 2016
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
You can pass just a port integer into Kestrel as the address to bind to. Currently Kestrel assumes this means to bind to the given port publicly for all IPs. https://github.com/aspnet/KestrelHttpServer/blob/dev/src/Microsoft.AspNetCore.Server.Kestrel/ServerAddress.cs#L87
Kestrel should only bind to localhost unless explicitly specified. Note WebListener already behaves this way.
The text was updated successfully, but these errors were encountered: