mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 05:16:01 +00:00
fix: use Blizzard's China hosts for Battle.net installs and update checks
The Agent's install request pointed at http://cn.patch.battle.net:1119/<product>. That host only 301-redirects to the country's version service today; Blizzard's China client asks cn.patch.battlenet.com.cn:1119 directly. The update check built <branch>.version.battle.net, so a China install (branch cn) asked cn.version.battle.net, which does not answer; the China service is cn.version.battlenet.com.cn. Only region cn changes.
This commit is contained in:
1 parent
26c562c174
commit
a0a7a66470
4 files changed
+20
-3
No files matched your search
@@ -38,6 +38,11 @@ class BattleNetInstallTest {
|
||||
assertNull(BattleNetInstall.latestBuild("", "us"))
|
||||
}
|
||||
|
||||
@Test fun theVersionServiceIsBlizzardsChineseOneForChina() {
|
||||
assertEquals("https://us.version.battle.net/v2/products/wow/versions", BattleNetInstall.versionsUrl("us", "wow"))
|
||||
assertEquals("https://cn.version.battlenet.com.cn/v2/products/d3cn/versions", BattleNetInstall.versionsUrl("cn", "d3cn"))
|
||||
}
|
||||
|
||||
@Test fun theDeviceLanguagePicksABlizzardLocale() {
|
||||
assertEquals("enUS", BattleNetInstall.locale(Locale.US))
|
||||
assertEquals("enGB", BattleNetInstall.locale(Locale.UK))
|
||||
|
||||
Reference in new issue
Block a user