Open Closed

Audit Log #3061


User avatar
0
narinder@urvin.finance created
  • ABP Framework version: 5.2.1
  • UI type: Blazor
  • DB provider: EF Core

I'm using microservices with Blazor Server. I'm getting issue with Audit Logs. The IP address is not local IP instead of inbound(Client IP Address)


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can try to override the GetClientIpAddress method.

    https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore/Volo/Abp/AspNetCore/WebClientInfo/HttpContextWebClientInfoProvider.cs#L30

  • User Avatar
    0
    narinder@urvin.finance created

    Hi. I Did that is there any thing else needs to be done. also i am able to get client ip address insdide blazor app. but not in gateway. its always.::1.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    https://github.com/dotnet/aspnetcore/issues/37728#issuecomment-948511840

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15