This commit is contained in:
aozhiwei 2020-06-24 21:44:10 +08:00
parent fe5b4a67ec
commit 4079a7807d

View File

@ -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;
}