Add proxy info

This commit is contained in:
2021-08-09 20:46:04 -04:00
parent 9042d0f987
commit 9485ce1c1e

View File

@ -30,6 +30,10 @@ namespace NikolaNet
options.ForwardedHeaders = options.ForwardedHeaders =
ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto; ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;
}); });
services.Configure<ForwardedHeadersOptions>(options =>
{
options.KnownProxies.Add(IPAddress.Parse("192.168.1.102"));
});
} }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.