diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-03-08 17:05:52 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-03-08 17:05:52 -0500 |
| commit | 1e6ef0791e2f6a4cbbec72573a52afc62e4717d8 (patch) | |
| tree | b71085ee4e2ac05e767fe436a4136ff36f8f839e /src/slskd/Program.cs | |
| parent | c5ae6da8ef092f77acade63f3ef79be162bb25b0 (diff) | |
| download | slskd-1e6ef0791e2f6a4cbbec72573a52afc62e4717d8.tar.gz | |
provide a minor version of 760 when logging in
Diffstat (limited to 'src/slskd/Program.cs')
| -rw-r--r-- | src/slskd/Program.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 8d67e803..a9504bb8 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -157,6 +157,14 @@ namespace slskd public static string FullVersion { get; } = $"{SemanticVersion} ({InformationalVersion})"; /// <summary> + /// Gets the minor version to identify slskd on the network. + /// </summary> + /// <remarks> + /// NOTICE: If you have forked slskd, change this number to something else. + /// </remarks> + public static int NetworkMinorVersion { get; } = 760; + + /// <summary> /// Gets a value indicating whether the current version is a Canary build. /// </summary> public static bool IsCanary { get; } = AssemblyVersion.Revision == 65534; @@ -680,7 +688,9 @@ namespace slskd // add a partially configured instance of SoulseekClient. the Application instance will // complete configuration at startup. services.AddSingleton<ISoulseekClient, SoulseekClient>(_ => - new SoulseekClient(options: new SoulseekClientOptions( + new SoulseekClient( + minorVersion: NetworkMinorVersion, + options: new SoulseekClientOptions( maximumConcurrentUploads: OptionsAtStartup.Transfers.Upload.Slots, maximumConcurrentDownloads: OptionsAtStartup.Transfers.Download.Slots, minimumDiagnosticLevel: OptionsAtStartup.Soulseek.DiagnosticLevel.ToEnum<Soulseek.Diagnostics.DiagnosticLevel>(), |
