serilog-contrib / serilog-enrichers-clientinfo

Enrich logs with client IP, correlation id and HTTP request headers.
MIT License
98 stars 22 forks source link

IPv6 address ClientIp not properly parsed from X-forwarded-for header #19

Closed mraz1337 closed 1 year ago

mraz1337 commented 1 year ago

I noticed in logs that ipv6 addresses are truncated. e.g. 2001:4860:7:505:

Looks like this code doesn't respect rules from RFC7239

mo-esmp commented 1 year ago

Thanks for reporting this issue and will check soon.