Browse Source

Validate https certificates

Bond_009 5 năm trước cách đây
mục cha
commit
526776372e
1 tập tin đã thay đổi với 0 bổ sung7 xóa
  1. 0 7
      Jellyfin.Server/Program.cs

+ 0 - 7
Jellyfin.Server/Program.cs

@@ -141,13 +141,6 @@ namespace Jellyfin.Server
             // http://stackoverflow.com/questions/566437/http-post-returns-the-error-417-expectation-failed-c
             // http://stackoverflow.com/questions/566437/http-post-returns-the-error-417-expectation-failed-c
             ServicePointManager.Expect100Continue = false;
             ServicePointManager.Expect100Continue = false;
 
 
-// CA5359: Do Not Disable Certificate Validation
-#pragma warning disable CA5359
-
-            // Allow all https requests
-            ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; });
-#pragma warning restore CA5359
-
             Batteries_V2.Init();
             Batteries_V2.Init();
             if (raw.sqlite3_enable_shared_cache(1) != raw.SQLITE_OK)
             if (raw.sqlite3_enable_shared_cache(1) != raw.SQLITE_OK)
             {
             {