diff --git a/README.md b/README.md
index 06a8124..959f354 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,5 @@
-# serilog-enrichers-clientinfo [![NuGet](http://img.shields.io/nuget/v/Serilog.Enrichers.ClientInfo.svg?style=flat)](https://www.nuget.org/packages/Serilog.Enrichers.ClientInfo/)
+# serilog-enrichers-clientinfo [![NuGet](http://img.shields.io/nuget/v/Serilog.Enrichers.ClientInfo.svg?style=flat)](https://www.nuget.org/packages/Serilog.Enrichers.ClientInfo/) [![](https://img.shields.io/nuget/dt/Serilog.Enrichers.ClientInfo.svg?label=nuget%20downloads)](Serilog.Enrichers.ClientInfo)
+
Enrich logs with client IP, Correlation Id and HTTP request headers.
Install the _Serilog.Enrichers.ClientInfo_ [NuGet package](https://www.nuget.org/packages/Serilog.Enrichers.ClientInfo/)
diff --git a/Serilog.Enrichers.ClientInfo.nuspec b/Serilog.Enrichers.ClientInfo.nuspec
index 84adb5e..b797115 100644
--- a/Serilog.Enrichers.ClientInfo.nuspec
+++ b/Serilog.Enrichers.ClientInfo.nuspec
@@ -15,25 +15,17 @@
assets\icon.png
serilog enrichers enricher ip correlation-id request header
© 2024 Serilog Contributors
- Fix #39 - ClientIpEnricher ignores updated HttpContext.Connection.RemoteIpAddress
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
@@ -42,14 +34,15 @@
+
+
+
-
-
-
+
diff --git a/sample/SampleWebApp/SampleWebApp.csproj b/sample/SampleWebApp/SampleWebApp.csproj
index 17d26ad..499e1c4 100644
--- a/sample/SampleWebApp/SampleWebApp.csproj
+++ b/sample/SampleWebApp/SampleWebApp.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/src/Serilog.Enrichers.ClientInfo/Extensions/ClientInfoLoggerConfigurationExtensions.cs b/src/Serilog.Enrichers.ClientInfo/Extensions/ClientInfoLoggerConfigurationExtensions.cs
index a2b243a..2ddb236 100644
--- a/src/Serilog.Enrichers.ClientInfo/Extensions/ClientInfoLoggerConfigurationExtensions.cs
+++ b/src/Serilog.Enrichers.ClientInfo/Extensions/ClientInfoLoggerConfigurationExtensions.cs
@@ -11,19 +11,13 @@ namespace Serilog;
public static class ClientInfoLoggerConfigurationExtensions
{
///
- /// Registers the client IP enricher to enrich logs with client IP with 'X-forwarded-for'
- /// header information.
+ /// Registers the client IP enricher to enrich logs with value.
///
/// The enrichment configuration.
- ///
- /// Set the 'X-Forwarded-For' header in case if service is behind proxy server. Default value
- /// is 'x-forwarded-for'.
- ///
/// enrichmentConfiguration
/// The logger configuration so that multiple calls can be chained.
public static LoggerConfiguration WithClientIp(
- this LoggerEnrichmentConfiguration enrichmentConfiguration,
- string headerName = "x-forwarded-for")
+ this LoggerEnrichmentConfiguration enrichmentConfiguration)
{
if (enrichmentConfiguration == null)
{
@@ -85,4 +79,4 @@ public static LoggerConfiguration WithRequestHeader(this LoggerEnrichmentConfigu
return enrichmentConfiguration.With(new ClientHeaderEnricher(headerName, propertyName));
}
-}
\ No newline at end of file
+}