Explorar o código

Fix bad string interpolation in MaskToCidr

Shadowghost %!s(int64=2) %!d(string=hai) anos
pai
achega
266d55b7aa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Jellyfin.Networking/Extensions/NetworkExtensions.cs

+ 1 - 1
Jellyfin.Networking/Extensions/NetworkExtensions.cs

@@ -104,7 +104,7 @@ public static partial class NetworkExtensions
         Span<byte> bytes = stackalloc byte[mask.AddressFamily == AddressFamily.InterNetwork ? Network.IPv4MaskBytes : Network.IPv6MaskBytes];
         if (!mask.TryWriteBytes(bytes, out var bytesWritten))
         {
-            Console.WriteLine("Unable to write address bytes, only {bytesWritten} bytes written.");
+            Console.WriteLine("Unable to write address bytes, only ${bytesWritten} bytes written.");
         }
 
         var zeroed = false;