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

Kestrel - Remove support for server URLs which contain only port number #181

Open
mikeharder opened this issue May 23, 2016 · 0 comments
Open

Comments

@mikeharder
Copy link

For discussion and questions related to these changes, please see: aspnet/KestrelHttpServer#867

Summary

We have removed support in Kestrel for server URLs which contain only a port number. This was done to avoid confusion about whether Kestrel would bind to http://locahost:port or http://+:port.

Example

In RC2, the following code causes Kestrel to bind to http://+:12345:

var host = new WebHostBuilder()
    .UseUrls("12345")
    .UseKestrel()

In future releases, the code must be changed to explicitly bind to either localhost or +:

var host = new WebHostBuilder()
    .UseUrls("http://localhost:12345")
    .UseKestrel()
var host = new WebHostBuilder()
    .UseUrls("http://+:12345")
    .UseKestrel()
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

1 participant