diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-12-17 18:03:43 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-17 18:03:43 -0600 |
| commit | 13179b8b6206ae25d79f2cd09d1b635807fb44fd (patch) | |
| tree | a6f894ece0df5bfd81e484b1e71cf0e051f6cd1f /src/slskd/Core | |
| parent | 3b68fa204b541997e6b6d7ab602ecd9478a0c6a9 (diff) | |
| parent | 10393094e835755d3dacf5255b3598b5868bbc49 (diff) | |
| download | slskd-13179b8b6206ae25d79f2cd09d1b635807fb44fd.tar.gz | |
Merge branch 'master' into multipart
Diffstat (limited to 'src/slskd/Core')
| -rw-r--r-- | src/slskd/Core/Options.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index a7fb26c4..32188aef 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -435,6 +435,15 @@ namespace slskd [EnvironmentVariable("LEGACY_WINDOWS_TCP_KEEPALIVE")] [Description("use a legacy TCP keepalive strategy for older Windows versions")] public bool LegacyWindowsTcpKeepalive { get; init; } = false; + + /// <summary> + /// Gets a value indicating whether to use the uploaded shares from Relay agents as the source of + /// truth for file existence and size, instead of querying the agent prior to enqueueing the file. + /// </summary> + [Argument(default, "optimistic-relay-file-info")] + [EnvironmentVariable("OPTIMISTIC_RELAY_FILE_INFO")] + [Description("use uploaded relay shares as source of truth for file existence and size")] + public bool OptimisticRelayFileInfo { get; init; } = false; } /// <summary> |
