Browse Source

Changed to address.

BaronGreenback 4 years ago
parent
commit
9a730241b1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs

+ 2 - 2
Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs

@@ -212,8 +212,8 @@ namespace Jellyfin.Server.Extensions
                 {
                     foreach (var address in host.GetAddresses())
                     {
-                        if ((!config.EnableIPV4 && host.AddressFamily == AddressFamily.InterNetwork)
-                            || (!config.EnableIPV6 && host.AddressFamily == AddressFamily.InterNetworkV6))
+                        if ((!config.EnableIPV4 && address.AddressFamily == AddressFamily.InterNetwork)
+                            || (!config.EnableIPV6 && address.AddressFamily == AddressFamily.InterNetworkV6))
                         {
                             continue;
                         }