Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kielek committed Oct 26, 2023
1 parent 5e1e98f commit f95c292
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,7 @@

var server = (IServer?)app.Services.GetService(typeof(IServer));
var addressFeature = server?.Features.Get<IServerAddressesFeature>();
var address = addressFeature?.Addresses.First();

foreach (var addressFeatureAddress in addressFeature!.Addresses)
{
Console.WriteLine(addressFeatureAddress);
}
var address = addressFeature?.Addresses.First().Replace("[::]", "127.0.0.1");

using var httpClient = new HttpClient();
httpClient.GetAsync($"{address}/test").Wait();

0 comments on commit f95c292

Please sign in to comment.