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:
visail authored and Kurt Himebauch committed 2026-11-05 09:56:40 -05:00
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))