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

+5
View File
@@ -1130,6 +1130,11 @@ class AgentTest(Temp):
self.assertIn("lang = a(5), country = a(6), region = a(7), out = a(8)", script)
self.assertIn('"--internalclienttools"', (BIN / "droiddeck-battlenet").read_text())
def test_the_driver_asks_blizzards_chinese_repository_for_chinese_installs(self):
script = BNET["AGENT_SCRIPT"]
self.assertIn('var patch = zone == "cn" ? "cn.patch.battlenet.com.cn" : zone + ".patch.battle.net";', script)
self.assertIn("+ patch + ':1119/'", script)
class AgentJobTest(Harness):
def setUp(self):