mirror of
https://github.com/Pathoschild/SMAPI.git
synced 2026-10-12 02:08:51 +00:00
This commit: - moves the malware blacklist into the malware scanner data repo; - optimizes the format to simplify editing (e.g. to allow multiple IDs/hashes per entry); - syncs it automatically to the web server; - and allows SMAPI to launch without the blacklist (in which case it'll resync automatically).
18 lines
856 B
C#
18 lines
856 B
C#
namespace StardewModdingAPI.Web.Framework.ConfigModels;
|
|
|
|
/// <summary>The config settings for syncing the malware blacklist from the Stardew malware scanner data repo.</summary>
|
|
internal class MalwareBlacklistConfig
|
|
{
|
|
/*********
|
|
** Accessors
|
|
*********/
|
|
/// <summary>The GitHub repository which contains the malware blacklist, or <c>null</c> to disable syncing. The repository must be readable to the GitHub login in <see cref="ApiClientsConfig"/>.</summary>
|
|
public string? GitHubRepo { get; set; }
|
|
|
|
/// <summary>The branch, tag, or commit from which to fetch the file, or <c>null</c> for the repository's default branch.</summary>
|
|
public string? GitRef { get; set; }
|
|
|
|
/// <summary>The malware blacklist's file path relative to the <see cref="GitHubRepo"/> root.</summary>
|
|
public string FilePath { get; set; } = null!;
|
|
}
|