get ip v4
This commit is contained in:
@@ -13,7 +13,7 @@ namespace PARR.API.Services.Implementations
|
||||
}
|
||||
public IPAddress? GetClientIp()
|
||||
{
|
||||
return httpContextAccessor.HttpContext?.Connection.RemoteIpAddress;
|
||||
return httpContextAccessor.HttpContext?.Connection.RemoteIpAddress?.MapToIPv4();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user