Skip to content

Commit 13919d4

Browse files
committed
Switch to patch service HTTPS V2
1 parent 092c521 commit 13919d4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

TACTSharp/CDN.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ private void LoadCDNs()
6464
{
6565
var timer = new Stopwatch();
6666
timer.Start();
67-
var cdnsFile = Client.GetStringAsync($"http://{Settings.Region}.patch.battle.net:1119/{Settings.Product}/cdns").Result;
67+
68+
var cdnsFile = GetPatchServiceFile(Settings.Product, "cdns").Result;
6869

6970
foreach (var line in cdnsFile.Split('\n'))
7071
{
@@ -157,7 +158,7 @@ private void LoadCASCIndices()
157158

158159
public async Task<string> GetPatchServiceFile(string product, string file = "versions")
159160
{
160-
return await Client.GetStringAsync($"https://{Settings.Region}.version.battle.net/{product}/{file}");
161+
return await Client.GetStringAsync($"https://{Settings.Region}.version.battle.net/v2/products/{product}/{file}");
161162
}
162163

163164
private byte[] DownloadFile(string type, string hash, ulong size = 0, CancellationToken token = new())

0 commit comments

Comments
 (0)