File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,8 @@ private void LoadCDNs()
64
64
{
65
65
var timer = new Stopwatch ( ) ;
66
66
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 ;
68
69
69
70
foreach ( var line in cdnsFile . Split ( '\n ' ) )
70
71
{
@@ -157,7 +158,7 @@ private void LoadCASCIndices()
157
158
158
159
public async Task < string > GetPatchServiceFile ( string product , string file = "versions" )
159
160
{
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 } ") ;
161
162
}
162
163
163
164
private byte [ ] DownloadFile ( string type , string hash , ulong size = 0 , CancellationToken token = new ( ) )
You can’t perform that action at this time.
0 commit comments