Click or drag to resize

AspNetRequestIpLayoutRendererCheckForwardedForHeaderOffset Property

Gets or sets the array index of the X-Forwarded-For header to use, if the desired client IP is not at the zeroth index. Defaults to zero. If the index is too large the last array element is returned instead. If a negative index is used, this is used as the position from the end of the array. Minus one will indicate the last element in the array. If the negative index is too large the first index of the array is returned instead.

Namespace:  NLog.Web.LayoutRenderers
Assemblies:   NLog.Web.AspNetCore (in NLog.Web.AspNetCore.dll) Version: 5.3.13+628b0876960af3ee3454c99b7985dbb5e1c46bf0
  NLog.Web (in NLog.Web.dll) Version: 5.3.13+628b0876960af3ee3454c99b7985dbb5e1c46bf0
Syntax
public int CheckForwardedForHeaderOffset { get; set; }

Property Value

Type: Int32
See Also