From 1e6ef0791e2f6a4cbbec72573a52afc62e4717d8 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 8 Mar 2026 17:05:52 -0500 Subject: provide a minor version of 760 when logging in --- src/slskd/Program.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src') 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 @@ -156,6 +156,14 @@ namespace slskd /// public static string FullVersion { get; } = $"{SemanticVersion} ({InformationalVersion})"; + /// + /// Gets the minor version to identify slskd on the network. + /// + /// + /// NOTICE: If you have forked slskd, change this number to something else. + /// + public static int NetworkMinorVersion { get; } = 760; + /// /// Gets a value indicating whether the current version is a Canary build. /// @@ -680,7 +688,9 @@ namespace slskd // add a partially configured instance of SoulseekClient. the Application instance will // complete configuration at startup. services.AddSingleton(_ => - 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(), -- cgit v1.2.3