|
|
|
@ -64,14 +64,14 @@ namespace Volo.Abp.AspNetCore.Auditing
|
|
|
|
|
|
|
|
|
|
|
|
protected virtual string GetBrowserInfo(HttpContext httpContext)
|
|
|
|
protected virtual string GetBrowserInfo(HttpContext httpContext)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return httpContext?.Request?.Headers?["User-Agent"];
|
|
|
|
return httpContext.Request?.Headers?["User-Agent"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected virtual string GetClientIpAddress(HttpContext httpContext)
|
|
|
|
protected virtual string GetClientIpAddress(HttpContext httpContext)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return httpContext?.Connection?.RemoteIpAddress?.ToString();
|
|
|
|
return httpContext.Connection?.RemoteIpAddress?.ToString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception ex)
|
|
|
|
catch (Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|