This commit is contained in:
aozhiwei 2024-04-05 14:03:03 +08:00
commit 2702692b31
3 changed files with 8 additions and 1 deletions

View File

@ -13,6 +13,7 @@ enum SSMessageId_e
_SS_MS_HttpTunnelResponse = 15;
_SS_HttpTunnelRequest = 16;
_SS_HttpTunnelResponse = 17;
_SS_BindUpStreamSocket = 20;
_SS_CMKcpHandshake = 99;
_SS_CMPing = 101;

View File

@ -132,3 +132,7 @@ message SS_Pong
message SS_ForceCloseSocket
{
}
message SS_BindUpStreamSocket
{
}

View File

@ -259,7 +259,9 @@ void App::ProcessTargetServerMsg(f8::MsgHdr* hdr)
GCListener::Instance()->ForceCloseClient(hdr->socket_handle);
return;
}
if (hdr->msgid == ss::_SS_CMLogin || hdr->msgid == ss::_SS_CMReconnect) {
if (hdr->msgid == ss::_SS_CMLogin ||
hdr->msgid == ss::_SS_CMReconnect ||
hdr->msgid == ss::_SS_BindUpStreamSocket) {
DownStreamMgr::Instance()->BindUpStream(hdr->socket_handle, hdr->ip_saddr);
GCListener::Instance()->MarkClient(hdr->socket_handle, true);
}