Remove debug lines

This commit is contained in:
snow flurry 2023-10-20 14:33:47 -07:00
parent fa882a1f4a
commit 060b4ee1a1

View file

@ -39,11 +39,8 @@ builder.Services.AddIdentityCore<User>(opts =>
.AddUserManager<UserManager<User>>()
.AddEntityFrameworkStores<PTMXContext>();
Console.WriteLine("Testing one two");
var proxyConfig = builder.Configuration.GetSection("Proxies");
if (proxyConfig?.GetSection("TrustedProxies")?.Get<IList<string>>() is {} trustedProxies) {
Console.WriteLine("Got trusted proxies!");
builder.Services.Configure<ForwardedHeadersOptions>(opts =>
{
opts.KnownProxies.AddRange(trustedProxies.Select(IPAddress.Parse));