diff --git a/server/wsproxy/downstream.cc b/server/wsproxy/downstream.cc index 8c409f2..c00e1ff 100644 --- a/server/wsproxy/downstream.cc +++ b/server/wsproxy/downstream.cc @@ -51,8 +51,8 @@ void DownStream::ForwardUpStreamMsg(f8::MsgHdr& hdr) head->magic_code = f8::MAGIC_CODE; head->ext_len = hdr.buflen >> 16; msg.SerializeToArray(buff + sizeof(f8::PackHead), head->packlen); + long_session->GetKcpSession()->SendClientMsg(buff, sizeof(f8::PackHead) + head->packlen); } - long_session->GetKcpSession()->SendClientMsg(buff, sizeof(f8::PackHead) + head->packlen); } else { long_session->GetKcpSession()->SendClientMsg(buff, sizeof(f8::PackHead) + head->packlen); }