-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Kestrel outputs to console an http url for non-http connection handlers #8565
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
Comments
Yeah, we should probably clean this up. Won't have time to fix it in 3.0 since our focus is generally HTTP right now but I like it. |
It can be done as part of this PR #11109 |
@anurse 3.1 candidate? |
The addresses displayed in the console are stored in the Still, the So, what to do?
I'm interested in creating a PR for this, but need some direction on what the best way to go is. |
#30792 suggests non-http(s) addresses are already being added to the It also means I was looking at this wrong. The correct fix would be to change where the addresses are being inserted into the collection and what is formatting them. It looks to be It could be as simple as updating the |
Unless something was changed in later versions, the output listening addresses aren't being pulled from IServerAddressesFeature. I have CoreWCF populating that with a |
Hey there! Just stumbled across this issue, while trying to "convince" Kestrel to display "TCP" instead of "http://". |
Describe the bug
When running the WebHost for an application, Kestrel outputs a list of Uri's that it's listening on. When using a custom ConnectionHandler with Kestrel which isn't http, it outputs the uri with an http scheme. You will see a line such as the following:
To Reproduce
Expected behavior
The ideal thing would be to be able to specify the scheme as part of either the config or a virtual property on ConnectionHandler but that's new api and a feature request. Without new api, output the listening endpoint instead of a Uri. e.g.:
The text was updated successfully, but these errors were encountered: