From 4079a7807d3e679bbc611b3839b2dcc08557f4a5 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 24 Jun 2020 21:44:10 +0800 Subject: [PATCH] 1 --- server/wsproxy/mastersvrmgr.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/server/wsproxy/mastersvrmgr.cc b/server/wsproxy/mastersvrmgr.cc index e7b63ea..24036c8 100644 --- a/server/wsproxy/mastersvrmgr.cc +++ b/server/wsproxy/mastersvrmgr.cc @@ -70,6 +70,20 @@ MasterSvr* MasterSvrMgr::GetConnById(int instance_id) void MasterSvrMgr::RequestTargetServer(f8::MsgHdr& hdr, const std::string& team_id, const std::string& account_id) { + #if GAME_ID == 9003 + { + TargetConn* conn = TargetConnMgr::Instance()->RecreateTargetConn( + "10.10.4.4", + 8951 + ); + if (conn) { + conn->ForwardClientMsgEx(hdr); + return; + } else { + abort(); + } + } + #endif if (GetContextIdBySocket(hdr.socket_handle) != 0) { return; }