فهرست منبع

changed to first

BaronGreenback 4 سال پیش
والد
کامیت
417a7011c7
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      Emby.Server.Implementations/ApplicationHost.cs

+ 2 - 1
Emby.Server.Implementations/ApplicationHost.cs

@@ -1203,8 +1203,9 @@ namespace Emby.Server.Implementations
         /// <inheritdoc/>
         /// <inheritdoc/>
         public string GetUrlForUseByHttpApi()
         public string GetUrlForUseByHttpApi()
         {
         {
+            // GetBindInterfaces will return an interface.
             var bind = NetManager.GetInternalBindAddresses().FirstOrDefault() ??
             var bind = NetManager.GetInternalBindAddresses().FirstOrDefault() ??
-                NetManager.GetAllBindInterfaces(true).FirstOrDefault();
+                NetManager.GetAllBindInterfaces(true).First();
 
 
             return GetLocalApiUrl(bind.Address.ToString(), Uri.UriSchemeHttp);
             return GetLocalApiUrl(bind.Address.ToString(), Uri.UriSchemeHttp);
         }
         }