Skip to content
This repository was archived by the owner on Feb 19, 2021. It is now read-only.

Commit cd7d48b

Browse files
author
Sammy Sammon
committed
Updated stats retrieval to TLS 1.2
1 parent ef1558b commit cd7d48b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Stats.cs

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public class Stats
1919
public static Stats DownloadStats()
2020
{
2121
var url = "https://listen.moe/api/info";
22+
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
2223
var data = new WebClient().DownloadString(url);
2324

2425
DataContractJsonSerializer s = new DataContractJsonSerializer(typeof(Stats));

0 commit comments

Comments
 (0)