mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
peace nirvana and no yellow warning lines in my console
This commit is contained in:
@@ -86,7 +86,7 @@ app.MapFallbackToPage("/_Host");
|
||||
|
||||
app.Start();
|
||||
|
||||
var addresses = app.Services.GetService<IServer>().Features.Get<IServerAddressesFeature>().Addresses;
|
||||
var addresses = app.Services.GetService<IServer>()?.Features.Get<IServerAddressesFeature>()?.Addresses ?? [];
|
||||
|
||||
foreach (var address in addresses)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user