diff options
| -rwxr-xr-x | bin/build | 2 | ||||
| -rw-r--r-- | src/slskd/Program.cs | 16 |
2 files changed, 9 insertions, 9 deletions
@@ -42,7 +42,7 @@ done if [ -z "$version" ]; then tag=$(git describe --tags --abbrev=0) sha=$(git rev-parse --short HEAD) - version=$tag-$sha + version=$tag+$sha fi if [ "$dotnet_only" == true ]; then diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 2faf9e72..8f24d69a 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -132,7 +132,7 @@ namespace slskd /// <summary> /// Gets the semantic application version. /// </summary> - public static string SemanticVersion { get; } = InformationalVersion.Split('-').First(); + public static string SemanticVersion { get; } = InformationalVersion.Split('+').First(); /// <summary> /// Gets the full application version, including both assembly and informational versions. @@ -635,13 +635,13 @@ namespace slskd }; }); - services.AddAuthentication(ApiKeyAuthentication.AuthenticationScheme) - .AddScheme<ApiKeyAuthenticationOptions, ApiKeyAuthenticationHandler>(ApiKeyAuthentication.AuthenticationScheme, options => - { - options.EnableSignalRSupport = true; - options.SignalRRoutePrefix = "/hub"; - options.Role = Role.Administrator; - }); + //services.AddAuthentication(ApiKeyAuthentication.AuthenticationScheme) + // .AddScheme<ApiKeyAuthenticationOptions, ApiKeyAuthenticationHandler>(ApiKeyAuthentication.AuthenticationScheme, options => + // { + // options.EnableSignalRSupport = true; + // options.SignalRRoutePrefix = "/hub"; + // options.Role = Role.Administrator; + // }); } else { |
