aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2019-11-22 16:23:42 +0100
committerBond_009 <bond.009@outlook.com>2019-11-22 16:23:42 +0100
commit526776372e9701df8976e5af20de4287b7bca599 (patch)
treee4503df883ad120e49cfb3e95a20bf13fb516041 /Jellyfin.Server
parent7846e9cb3cce026b81509454c8128cc7ca17c2f8 (diff)
Validate https certificates
Diffstat (limited to 'Jellyfin.Server')
-rw-r--r--Jellyfin.Server/Program.cs7
1 files changed, 0 insertions, 7 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs
index e8bd0cd30..bdf3689f1 100644
--- a/Jellyfin.Server/Program.cs
+++ b/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
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();
if (raw.sqlite3_enable_shared_cache(1) != raw.SQLITE_OK)
{