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()
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 ( ) )
You can’t perform that action at this time.
0 commit comments