From 9e0f5d9dd869a23acae626ad4bcdfc6d414ad55a Mon Sep 17 00:00:00 2001 From: UnKownOwO <80520429@qq.com> Date: Mon, 21 Aug 2023 18:43:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B94.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dispatch/controller/dispatch_controller.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dispatch/controller/dispatch_controller.go b/dispatch/controller/dispatch_controller.go index bc37f09d..f1dac4ba 100644 --- a/dispatch/controller/dispatch_controller.go +++ b/dispatch/controller/dispatch_controller.go @@ -51,6 +51,8 @@ type ClientCustomConfig struct { LoadPatch bool `json:"loadPatch"` RegionConfig string `json:"regionConfig"` DownloadMode int32 `json:"downloadMode"` + CodeSwitch []int32 `json:"codeSwitch"` + CoverSwitch []int32 `json:"coverSwitch"` } // GetRegionList 一级dispatch信息 @@ -79,6 +81,8 @@ func GetRegionList(ec2b *random.Ec2b) *proto.QueryRegionListHttpRsp { DebugMenu: true, DebugLogSwitch: []int32{0}, DebugLog: true, + CodeSwitch: []int32{3628}, + CoverSwitch: []int32{40}, }) endec.Xor(clientCustomConfig, dispatchXorKey) regionList.ClientCustomConfigEncrypted = clientCustomConfig // 加密后的客户端版本定义的配置 @@ -133,6 +137,8 @@ func GetRegionCurr(ec2b *random.Ec2b, gateServerAddr *api.GateServerAddr, stopSe DebugMenu: true, DebugLogSwitch: []int32{0}, DebugLog: true, + CodeSwitch: []int32{3628}, + CoverSwitch: []int32{40}, }) endec.Xor(clientCustomConfig, dispatchXorKey) regionCurr.ClientRegionCustomConfigEncrypted = clientCustomConfig // 加密后的客户端区服定义的配置