You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to create a ConnectionHandler for my FTP server, but the scheme of the listener address reported by the server is always http, because IsHttp of the ListenerOptions is always set to true. It would be favorable to get either tcp or (even better ftp) as scheme.
To Reproduce
Steps to reproduce the behavior:
Using this version of ASP.NET Core '3.0 preview 7'
Output when starting the server (expected, but confusing, and definitely not preferred): Now listening on: http://localhost:21.
Expected behavior
It would be preferrable to have a way to change the scheme to something that wouldn't confuse the user reading the logs, like ftp, but tcp would work too (as workaround). I'm not able to change IsHttp, because it's internal and I don't have a way to add my own ListenerOptions implementation, which would be able to return the "correct" address.
The current (bad) workaround would be to create an extension method, like ConfigureFtpServer, which would replicate some of the API of ConfigureKestrel, but that would require changing the IsHttp property via reflection.
Additional context
Add any other context about the problem here.
Include the output of dotnet --info
Describe the bug
I want to create a
ConnectionHandler
for my FTP server, but the scheme of the listener address reported by the server is alwayshttp
, becauseIsHttp
of theListenerOptions
is always set totrue
. It would be favorable to get eithertcp
or (even betterftp
) as scheme.To Reproduce
Steps to reproduce the behavior:
ConfigureKestrel(opt => opt.ListenLocalhost(21))
Now listening on: http://localhost:21
.Expected behavior
It would be preferrable to have a way to change the scheme to something that wouldn't confuse the user reading the logs, like
ftp
, buttcp
would work too (as workaround). I'm not able to changeIsHttp
, because it's internal and I don't have a way to add my ownListenerOptions
implementation, which would be able to return the "correct" address.The current (bad) workaround would be to create an extension method, like
ConfigureFtpServer
, which would replicate some of the API ofConfigureKestrel
, but that would require changing theIsHttp
property via reflection.Additional context
Add any other context about the problem here.
Include the output of
dotnet --info
The text was updated successfully, but these errors were encountered: