diff options
| author | Nyanmisaka <nst799610810@gmail.com> | 2021-08-13 15:01:06 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-13 15:01:06 +0800 |
| commit | a84dc794c6960a8a6e1dc0660e15a030e0f51305 (patch) | |
| tree | 9e1c33cab6cca6681811d0a2f6a51902c108bf77 /Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs | |
| parent | d4f09c6c9b142081064c4008bc1e84fb17c81ad8 (diff) | |
| parent | e33901b9f5f65eb8e48c018a30a37094ad874897 (diff) | |
Merge branch 'master' into tonemap-overlay
Diffstat (limited to 'Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs')
| -rw-r--r-- | Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs index 15dc43856..f19e87aba 100644 --- a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs +++ b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs @@ -303,7 +303,7 @@ namespace Jellyfin.Server.Extensions { description.TryGetMethodInfo(out MethodInfo methodInfo); // Attribute name, method name, none. - return description?.ActionDescriptor?.AttributeRouteInfo?.Name + return description?.ActionDescriptor.AttributeRouteInfo?.Name ?? methodInfo?.Name ?? null; }); @@ -341,7 +341,7 @@ namespace Jellyfin.Server.Extensions { foreach (var address in host.GetAddresses()) { - AddIpAddress(config, options, addr.Address, addr.PrefixLength); + AddIpAddress(config, options, address, address.AddressFamily == AddressFamily.InterNetwork ? 32 : 128); } } } @@ -397,7 +397,7 @@ namespace Jellyfin.Server.Extensions Type = "object", Properties = typeof(ImageType).GetEnumNames().ToDictionary( name => name, - name => new OpenApiSchema + _ => new OpenApiSchema { Type = "object", AdditionalProperties = new OpenApiSchema |
