This commit is contained in:
aozhiwei 2023-04-24 13:26:05 +08:00
parent b9f09fd360
commit caaf17bf26

View File

@ -16,6 +16,7 @@
#include "upstreammgr.h"
#include "app.h"
#include "downstreammgr.h"
#include "GCListener.h"
class RequestTarget
{
@ -134,6 +135,16 @@ void MasterMgr::RequestTargetServer(f8::MsgHdr& hdr,
msg.set_server_info(server_info);
msg.set_is_reconnect(is_reconnect);
msg.set_proto_version(proto_version);
#ifdef DEBUG
#else
std::string url;
std::string query_str;
{
GCListener::Instance()->GetWebSocketUrl(hdr.socket_handle, url, query_str);
}
msg.set_url(url);
msg.set_query_str(query_str);
#endif
svr->SendMsg(msg);
pending_socket_hash_[hdr.socket_handle] = req;