Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Don't bind if only port is specified. #814

Closed
Tratcher opened this issue May 9, 2016 · 3 comments
Closed

Don't bind if only port is specified. #814

Tratcher opened this issue May 9, 2016 · 3 comments
Assignees
Milestone

Comments

@Tratcher
Copy link
Member

Tratcher commented May 9, 2016

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.

@Tratcher Tratcher added the bug label May 9, 2016
@Tratcher Tratcher added this to the 1.0.0 milestone May 9, 2016
@Tratcher
Copy link
Member Author

Tratcher commented May 9, 2016

@muratg muratg changed the title Bind to localhost when only given a port Don't bind if only port is specified. May 18, 2016
@Tratcher
Copy link
Member Author

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
- Also renamed ServerAddressFacts to ServerAddressTests to match existing test classes
@mikeharder
Copy link
Contributor

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
- Also renamed ServerAddressFacts to ServerAddressTests to match existing test classes
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants